Sweet new tags in HTML5

Posted by Anantha Narayanan On 12:24 PM No comments

Section 2: Sweet, I have new tags

While HTML5 is not always about introducing new tags, its there. Its just not added newly because they had to, but they really help identify the content you are going to put in the webpage.

Before understanding new tags which are introduced, we will understand the meaningless nature of <div> tags. A div tag is used only to stuff contents together, and later style it using stylesheets (CSS). Consider the following example:

<div id="navigation">
  some navigation links
</div>

Well do you consider the following or above to be simple enough to understand?

<nav>
  some navigation links
</nav>

It makes sense to write less code and which is intelligible for humans. After all humans write HTML.

For a full list of tags available in HTML5 check this link in MDN.

Previous Section Next Section

0 comments:

Post a Comment

Recommended Post Slide Out For Blogger