Hi, I have noticed the WebMatrix 2.0 samples are using all sorts of custom tags.
Like:
aside
content
blah
I have tested using IE9 older modes, and the pages seem to render just fine. Meaning this is fine way before HTML5? Why isn't this used in older examples? And I rarely see people used that in practice until now. Should I start using this way as well?
I haven't tested it on older browsers, only the IE9 older rendering modes. Is this actually ok in, like IE6, and IE8?
I am thinking of switching to this style, but, just want to make sure it is ok.
They aren't custom tags (other than blah) - they are html5 tags. Modernizr helps detect features available in a browser and there are certain js libraries to render html5 tags in browsers not supporting html5. Without these libraries, the html5 tags won't
work in older browsers.
"If I can see further than anyone else, it is only because I am standing on the shoulders of giants."blog: www.heartysoft.com twitter: @ashic
Marked as answer by magicalclick on Apr 16, 2012 07:39 PM
These are new tags introduced in HTML5. they would work fine in IE9 and later. but won't render good in IE older versions. For that you need to use the modernizer library. it will detect browsers that doesn't support HTML5 standard and render accordingly.
magicalclick
Member
54 Points
50 Posts
Is this the future of HTML [custom tags]?
Apr 11, 2012 06:22 AM|LINK
Hi, I have noticed the WebMatrix 2.0 samples are using all sorts of custom tags.
Like:
I have tested using IE9 older modes, and the pages seem to render just fine. Meaning this is fine way before HTML5? Why isn't this used in older examples? And I rarely see people used that in practice until now. Should I start using this way as well?
I haven't tested it on older browsers, only the IE9 older rendering modes. Is this actually ok in, like IE6, and IE8?
I am thinking of switching to this style, but, just want to make sure it is ok.
Thank you.
HeartattacK
All-Star
55262 Points
5917 Posts
Moderator
MVP
Re: Is this the future of HTML [custom tags]?
Apr 11, 2012 07:28 AM|LINK
They aren't custom tags (other than blah) - they are html5 tags. Modernizr helps detect features available in a browser and there are certain js libraries to render html5 tags in browsers not supporting html5. Without these libraries, the html5 tags won't work in older browsers.
blog: www.heartysoft.com
twitter: @ashic
SyedZohebAli...
Member
40 Points
18 Posts
Re: Is this the future of HTML [custom tags]?
Apr 16, 2012 03:30 PM|LINK
These are new tags introduced in HTML5. they would work fine in IE9 and later. but won't render good in IE older versions. For that you need to use the modernizer library. it will detect browsers that doesn't support HTML5 standard and render accordingly.
Thanks,
http://zohebsumair.blogspot.in/
magicalclick
Member
54 Points
50 Posts
Re: Is this the future of HTML [custom tags]?
Apr 16, 2012 07:40 PM|LINK
I see, thank you so much.