RootsWeb.com Mailing Lists
Total: 1/1
    1. Re: [FreeHelp] HTML5
    2. Barry Carlson
    3. On Tuesday, November 30, 2010 11:49 PM (UTC+13) Rosemary wrote:- > You may well be aware of this, but it was new to me - a way of making IE > use HTML5 until IE9 comes out and is widely supported: > > http://webdesign.about.com/od/internetexplorer/qt/html5-shiv-for-internet-explorer.htm?nl=1 > -------------------------------- Hi Rosemary, Many thanks for pointing me to that page. This just shows you that provided a browser is told how to do something in a way that it understands, then almost anything is possible! Some of you may have noticed, in pages I have posted in the last six months or so, that I have been using HTML5 mark-up. <!doctype html> is all that is required to put all browsers into Standards mode, and simplifying <script> and <style> tags by removing their "type" declarations is just one feature that all browsers accept without doing anything extra. The W3C validator at http://validator.w3.org/ and http://validator.nu/ will both parse your page as HTML5 when presented with <!doctype html> tag. For the purists using other validators and XHTML Strict declarations, much of the extra markup required to keep those validators happy is now no longer required. In fact the majority of browsers are quite happy to accept the reduced mark-up, and its just the validator that "chokes". All that is required to start a page in HTML5 is:- <!--code> <!doctype html> <html> <head> <meta charset="utf-8" /> <title>HTML5 Page</title> <style>@import "mystyles.css"</style> <script src="somescript.js"></script> </head> <body> All my stuff! </body> </html> <code--> So, as many of you will notice, HTML5 is about "simplifing" mark-up and creating a user friendly environment for webpage designers. Thanks Rosemary. Barry

    11/30/2010 10:34:50