html - why html5 is used necessarily? -
this question has answer here:
i'm surprisingly amazed @ following codes found in joomla2.5 template: beez5
<?php if(!$templateparams->get('html5', 0)): ?> <div id="header"> <?php else: ?> <header id="header"> <?php endif; ?>
yeah! it's age of html5 code asking if browser supports html5 add <header id="header">
tag otherwise add <div id="header">
. why template not using <div id="header">
instead of both?
question: difference between old markup <div id="header">
, new markup <header id="header">
? if browsers supports html5, behaves differently <div id="header">
when using <header id="header">
?
php server side language, not checking @ client level, @ server.
html 5 more semantically correct, using <header>
rather using <div>
id
header provides better seo
, easier web crawlers find, , provides better accessibility (i.e. screen reader or other device can relate headers
, footers
, sections
represent).
Comments
Post a Comment