RootsWeb.com Mailing Lists
Total: 1/1
    1. Re: [FreeHelp] Other "boilerplate" html
    2. Barry Carlson
    3. Charlie, The following covers the points you raised, and more. HTML5 is much less restrictive and therefore easier to write than XHTML 1.0. No requirement to declare the namespace uri, e.g. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" with the doctype. No requirement to add type attributes to script and style elements - the browser determines the defaults itself. No requirement to add //<![CDATA[ etc. to included scripts or stylesheets for them to validate. No requirement to use a long doctype such as - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - now where do I have to go to find that?! Even I can remember <!DOCTYPE html>. No requirement to choose to include or not include a DTD URI in the DOCTYPE (mentioned in the first point) and neither is there a requirement to choose between Transitional and Strict mark-up. Using HTML5 <!DOCTYPE html> gives you a Strict doctype that triggers full Standards mode. Quirks mode rendering by browsers is a thing of the past. A simple character set declaration - <meta charset="utf-8"> ** Use http://validator.nu designed simply to handle HTML5, and which is not constricted by confusing Document Type Declarations. XHTML frowned upon tags such as <embed> are permitted. Over-all the syntax is cleaner, with no requirement to self-close single tags such as <img>, <br>, <hr> etc.. and as well as hosting the new HTML5, it allows legacy browsers render all of the code "they understand" in Standards mode. Note: ** <meta charset="iso-8859-1"> is an option, but "utf8" covers everything that "iso-8859-1" does, and more. My challenge is; Take a valid XHTML 1.0 Strict page, change the doctype to <!DOCTYPE html> and remove the extraneous stuff from the <html> tag. Let me know if the page doesn't render exactly the same as previously. Barry ================ Pat, I have, like you, also scripted pages in XHTML1.0 Strict and agree that format is rigid but satisfying after a good outcome. I'm lazy by nature, and HTML5 fits my life-style! Barry

    02/27/2012 05:47:24