html5

Facebook Connect and HTML5, xmlns available?

Facebook Connect and their "Social Widgets" documentation mention that you need to add an xmlns attribute to your <html> tag on the page where it will be used. I understand that xmlns is for XML Name-spacing, and have used such with XHTML before. However, with all the recent talk about HTML4 / HTML5, without having read through the ent...

Authoring HTML5 in Emacs?

What's the best solution for authoring HTML5 in Emacs? Is there a mode that will do conformance checking? ...

Is it possible to add HTML5 validation to Visual Studio?

I'm working on a page using <canvas>, which is a HTML5 tag, in Visual Web Developer Express Edition 2008, and the validator in the HTML editor is telling me it's an invalid tag. That's because it's set to validate against XHTML 1.0 Transitional. I'd prefer for it to not do that and tell me what's valid or invalid based on the HTML5 docty...

HTML 5 <video> tag vs Flash video. What are the pros and cons?

Seems like the new <video> tag is all the hype these days, especially since Firefox now supports it. News of this are popping up in blogs all over the place, and everyone seems to be excited. But what about? As much as I searched I could not find anything that would make it better than the good old Flash video. In fact, I see only probl...

Sending a message to all open windows/tabs using JavaScript

I hear HTML5 has window.postMessage(), but it seems to require having a handle on the window (or tab, throughout this question) you're posting the message to. What if I want to broadcast to all open windows? Is this possible? (What I'm trying to do is warn other windows without any server round-trips when a user does something in one ...

What's the proper way to add Facebook Connect and their xmlns to (X)HTML5?

I'm gleaning from this question [http://stackoverflow.com/questions/599334/facebook-connect-wont-validate] that using Facebook Connect and other facebook 'social widgets' just doesn't result in a 'valid' document. Concerning (X)HTML5, however, what would be the (most) appropriate doctype/header if I want to include Facebook Connect con...

Getting mouse location in canvas

Is there a way to get the location mouse inside a <canvas> tag? I want the location relative to to the upper right corner of the <canvas>, not the entire page. ...

Can autocapitalize be turned off with javascript in mobile safari?

Mobile safari supports an attribute on input elements called autocapitalize [documented here], which when set to 'off' will stop the iPhone capitalizing the text input into that field, which is useful for url or email fields. <input type="text" class="email" autocapitalize="off" /> But this attribute is not valid in html 5 (or another...

Centering a canvas

How do I markup a page with an HTML5 canvas such that the canvas 1.) Takes up 80% of the width 2.) Has a corresponding pixel height and width which effectively define the ratio (and are proportionally maintained when the canvas is stretched to 80%) 3.) Is centered both vertically and horizontally You can assume that the canvas is the...

Simple Color Variation

I am creating a UI in which users have the ability to change color values of their pages. What I would like is to take the value assigned to their background color and lighten it a certain amount. I am just looking to achieve a highlight line without having to make new images every time. Example: The user set the background color to #E...

Is it time to start developing with HTML5?

From searching SO, this question was already asked, almost a year ago now. So now with the new FF, Opera, IE, is it finally time to start developing sites with HTML5 or is it still a little premature and will cause compatibility issues? Is using HTML5 just going to require us to use more and more JS on websites to 'trick' older browse...

jQuery, html5, append()/appendTo() and IE

How to replicate: Create an html5 page. Make sure you have the script from remysharp.com/2009/01/07/html5-enabling-script/ added so that IE will notice the tags. Create an hardcoded <section id='anything'></section> tag. Using jQuery 1.3.2, append another section tag: $('#anything').append('<section id="whatever"></section>'); So far, ...

Which browsers support html5 offline storage?

Essentially, I wanted to run a piece of demo code from W3c Offline Webapps page. It looks like that: var db = window.openDatabase("notes", "", "The Example Notes App!", 1048576); Firefox 3.5, IE8 and Chrome do not seem to get it. Is there anybody out there that actually wrote support for that? Or is this wishful thinking about 'the s...

Embed video in web page (HTML).

I want embed a video in a webpage. I don't want to use flash because it's unavailable for a huge number of platforms. I'm reluctant to use HTML5 becase it's not too standard yet (It IS standard, but most people don't have browsers that support it) Is there any other way? Or should I stick to HTML5 and a HUGE banner telling people to u...

complete client side application using HTML 5

Is it possible to create a complete client side application using HTML 5 (it will embed chat clients, stock ticker) + JavaScript, and then bundle is with underlining Firefox 3.5 engine, so that user can install it as a desktop app on Linux, and then it runs in its own window using firefox 3.5 engine. The app will store everything in loca...

HTML 5 offline caching

I've read the following Mozilla Developer article that explains how to implement HTML 5 offline resource caching in web apps. I've tried testing this locally: added the mime type to the list, created the manifest file, changed my doctype to the HTML 5 doctype, specified the manifest attribute and the correct path on the HTML element--bu...

How to let Eclipse accept the canvas tag?

I installed the Aptana plugin in my Eclipse, and I use canvas tag in my html file. I find that the Eclipse can't recognize the canvas tag, it highlight my canvas tags, and display follow msg: < canvas > is not recognized How can I fix this problem? thx in advance. ...

HTML 5 with CSS 3 and HTML 5 sokets

Does any body know where to get the tutorials for this? Because I have searched in the google and I could not find proper source. Thanks in advance! ...

html5 impact and questions

I keep hearing about html5 and seen on other questions/answers on this site that the current browsers do not yet support it...what I know: it has potential to replace flash and silverlight Google seems to be building new systems to take advantage of it (is that correct?) What I don't know (which is a lot, but will limit it to some po...

Which is the future of web development: HTML5 or Silverlight(or other RIA framework)?

My colleagues have a heated debate on what is the future of web development. One side is supporting HTML5 and the other is supporting Silverlight. There is no conclusion of the debate yet. In my humble opinion as a programmer, HTML5 will not improve programming productivity, while Silverlight will. In my understanding, programmers still...