html5 - Where could some html tags be necessary? -
i walking through new html 5 features , saw , tried lot of new tags see kind of affect have on browser didn't see difference.
so lets talk <time>
tag example :
if write down
<time>10:00</time>
shows 10:00 on page mean expecting advanced formatting. example, if write<time>10</time>
format 10:00 instead of showing 10 on page.also example can
<time datetime="2008-02-14">valentines day</time>
showsvalentine days
on page , nothing more. no tooltip, not fancy animation nothing them.
they tags this, , if needed use span or else , use kinda js code make more appealing , that's all.
so not talking <time>
tag here, other tags that.
eventually, question why , need use them.
my best guess make source code more readable codes , crawlers maybe or can used semantic web. these answers didn't satisfy me.
they used adding semantic meaning markup. instance:
<div class="post"> <h1>example blog post</h1> <div class="entry"> <p>blog text goes here...</p> </div> <div class="entryfooter"> <p> posted in example category.</p> </div> </div>
is not readable using html5 tags of:
<article> <header> <h1>example blog post</h1> </header> <p>blog text goes here...</p> <footer> <p>posted in example category.</p> </footer> </article>
it helps make markup more readable developers , think makes styling lot easier. <time>
tag falls in boat provides more semantic meaning in markup <span>
tag would. way programs in future or browsers might able use semantic data change time per user's local time zone example.
Comments
Post a Comment