www.webdeveloper.com
Results 1 to 6 of 6

Thread: HTML5 or XHTML

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    13

    Question HTML5 or XHTML

    Hi there,

    We get our new corporate website coded in HTML5. However it might not work good on some browsers. Do you think it is "safer" in terms of the good performance and user experience to use XHTML?
    Host Color - Web Hosting Services since 2000
    > 24/7 support: 1-888-222-1495; Skype: HostColor

  2. #2
    Join Date
    Jul 2003
    Location
    The City of Roses
    Posts
    2,503
    XHTML is long gone and dead. Even if you use an XHTML doctype and add the self-closing slashes, every browser will still parse your page as if it were plain old HTML. So no, it isn't any safer.
    for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
    {for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";

  3. #3
    Join Date
    Oct 2008
    Posts
    13
    Thanks. So it is worth to use HTML5, isn't it?
    Host Color - Web Hosting Services since 2000
    > 24/7 support: 1-888-222-1495; Skype: HostColor

  4. #4
    Join Date
    Jul 2003
    Location
    The City of Roses
    Posts
    2,503
    Quote Originally Posted by HostColor View Post
    Thanks. So it is worth to use HTML5, isn't it?
    To the extent that it's cross-browser compatible, sure. But with IE 6, 7 and 8 in the mix (and to some extent, IE 9 as well), that doesn't leave you with much. HTML 5's biggest contribution has been the <video> tag, and even that's used almost exclusively for the iPad, since it doesn't support Flash.

    As MarPlo pointed out, you can still use XHTML syntax. Though, those extra slashes don't come with any benefit. And yes, with some JS and CSS magic, you can make IE recognize the newer HTML 5 elements. But I haven't heard anything from Google saying that <article> is more SEO friendly than <div class="article">. So, again, not a whole lot of benefit.
    Last edited by Jeff Mott; 06-28-2011 at 12:31 PM.
    for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
    {for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";

  5. #5
    Join Date
    Feb 2011
    Posts
    231
    Hy,
    With HTML5 you can use both HTML or XHTM syntax.
    Also, include in the HEAD section of the page these two codes:
    <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    And:
    <style>header, footer, section, aside, nav, article {display: block;}</style>

    Useful to make IE to recognize some new HTML5 tags.

  6. #6
    Join Date
    Aug 2006
    Posts
    1,897
    I will disagree with the trend and say no, html5 is not "safer" by any means. It is a new spec, not even ratified yet, and browser developers are trying to keep up with the moving target. Being an early adopter or beta tester is not "safe". Safe would be using HTML 4 or XHTML 1 Strict, as the standards have been out for a long time and browsers are pretty compatible.

    Dave

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles