html5

How can I use the HTML5 canvas element in IE?

I am trying to use the HTML5 canvas element to draw some arcs and circles - this works perfectly in FF but IE8 does not seem to support it. Now, there exist Javascript libraries which seem to make IE8 work well with Canvas. An example can be found here: http://thejit.org/Jit/Examples/Hypertree/example1.html I have read their entire so...

Canvas Tutorial / Reference

Can somebody please refer me to a comprehensive tutorial on Canvas which covers all properties / functions? I also need a definite reference on Canvas - something like w3schools ...

What is(are) currently the best language(s) for modern web site design? Recommendations?

I'm a little out of date, before HTML4 and javascript got AJAXy. Does anyone have opinions about the best tools for web site design? I'd rather avoid ASP and .NET, since I've got a limited budget. This seems like a good time to start fresh. Please keep the replies on the coding recommendations, as I already know how to register a dom...

html5.0 canvas textfield

i wanna draw a login interface,so i have to draw the textfield to input and button to submit! if i achieve it by using input and button tag,it will be easy!but i was required to draw them in the canvas using html5.0 . i have searched google for two days,i cannot find a good idea! who has experience? help me! thanks in advance! ...

HTML 5 WebSocket

I just read about HTML 5's WebSocket interface. How can I start trying this? What browser versions have implemented this already? ...

Is HTML 5 supported by all the main browsers?

I am looking at the custom attributes feature of html 5 here at this link http://ejohn.org/blog/html-5-data-attributes/ This look like the perfect thing for when I am using jquery/javascript. My question, Is HTML 5 supported by all the main browsers? example <li class="user" data-name="John Resig" data-city="Boston" data-la...

What are the best resources to learn RIA programming with HTML5?

I am amazed at what can be done with HTML5 canvas (take bespin or google wave as examples). It seems it is a revolutionary approach which really leverages widespread standards and technologies (html, javascript and css) and pushes them to a new level. It seems that HTML5 is a very strong contender for RIA solutions with strong points in...

How do you set up your web server & document's html to correctly serve HTML5 documents?

Maybe I'm an idiot but I don't quite get what goes in the header of my HTML to use XHTML w/ HTML5. Is this still good and we just add the HTML5 tags?: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html dir="ltr" lang="eng" xmlns="http://www.w3.org/1999/xhtml"&gt; Or i...

Ruby, Rack and headers such as "Accept-Ranges" or "X-Content-Duration"

Does anyone have an example of how to add additional headers to the Thin Ruby server? Specifically, I need to add either "Accept-Ranges" or "X-Content-Duration" for media based files served, ogg audio and video mostly, served via the new HTML5 media elements. If someone has a fix for this, or a link to a really good tutorial about Rack,...

What differences are expected of XHTML5 versus HTML5?

What differences are expected of XHTML5 versus HTML5? I understand that XHTML5 is the XML form of the language and HTML5 is the SGML form of the language, which means obvious minor syntax differences. Will there be any further differences? Will XHTML5 deprecate completely worthless elements that were not deprecated by HTML5? Will XHT...

Canvas Animation Kit Experiment... ...how to clear the canvas?

I can make a obj to use the canvas to draw like this: MyObj.myDiv = new Canvas($("effectDiv"), Setting.width, Setting.height); Then, I use this to draw a rectangle on the canvas: var c = new Rectangle(80, 80, { fill: [220, 40, 90] } ); var move = new Timeline; move.addKeyframe(0, { x: 0, y: 0 } ); c.addTimeli...

Add HTML 5 doctype to XDocument (.NET)

When creating a doctype for an System.Xml.Linq.XDocument like this: doc.AddFirst(new XDocumentType("html", null, null, null)); The resulting saved XML file starts with: <!DOCTYPE html > Notice the extra space before the closing angle bracket. How can I prevent this space appearing? I'd like a clean way if possible :) ...

When will you start using HTML 5?

So HTML 5 has been widely publicised as expected to be ready in 2022. This is a long time to wait, and the test for that readiness is that "at least two browsers to completely pass [HTML 5 test suites]" Obviously for browsers to pass this test they have to start implementing usable HTML 5 features before that. The list of new HTML5 fea...

How to add a border on HTML5 Canvas' Text?

I can draw text using these code: myCanvas.fillStyle = "Red"; myCanvas.font = "30pt Arial"; myCanvas.fillText("Some Text", 10, 30); I want to add a border around "Some Text", any ideas on that? ...

Compare/contrast HTML, XHTML, XML, and HTML5

Ok, so I'm not quite sure the difference between these languages. Could someone clarify? I know that XML has user-defined tag and html is pre-defined, but thats basically the extent of my knowledge. I know that HTML5 is supposed to replace HTML, but wasn't XML supposed to do that as well? Basically, which languages here are a substit...

Which is better and why? RaphaelJS or HTML5 Canvas?

I found a vector library on the Internet that even works with IE6! http://raphaeljs.com/index.html It's amazing. Now my question is it better than the upcoming HTML5 <canvas>? The only reason I ask is that it could be years before Microsoft implements a <canvas> that doesn't require a plugin for it to run. And it will be even long...

possible to use html images like canvas with getImageData / putImageData ?

I'd like to know if there is a way to dynamically modify/access the data contained in html images just as if they were an html5 canvas element. With canvas, you can in javascript access the raw pixel data with getImageData() and putImageData(), but I have thus far been not able to figure out how to do this with images. ...

How does the HTML5 Web Sockets Interface work?

I heard about the Web Sockets Interface in the HTML file specification from a relevant question here. It sounds very promising! I don't understand how it works does it still use the HTTP protocol and works-around it or does it work something like TCP sockets? ...

Editable Text Highlighting

I would like to create an editable "textarea" with text highlighting (e.g. different colours, bold) and I am not interested in backward compatibility with old (and meybe current) browsers. It isn't a code editor, but something similar. So it is really different from CkEditor, because the content should appear formatted to the user, but ...

How to Make Canvas Text Selectable?

Any suggestion is highly appreciated. ...