fastread homefastrread library fastread menu

HTML5 : Header Tag

Tutorial by:Franklin Dessi      Date: 2016-08-16 23:58:50

❰ Previous Next ❱

A crucial reason for using semantics is to increase accessibility. Prior to HTML5, there was no specific way to tag content based on its definitions. HTML5 changed all that. The <div> tag was used extensively along with headings to create a header for the web page. However, now we have the header tag. A header tag may contain headings nested into it but that is not a necessity.

Searching stuff on the internet is possible due to the search engines such as Google Search and Bing. SEO (search engine optimization) is a concept that is crucial and imperative for a website. For example, search engines with the help of crawlers can access a web page content based on the elements that contain them.

Hence, the header element is very important as it provides more accessibility than other elements, like the footer. The search engine finds the content in the header tag quite easily. Moreover, using the header element accounts for an appropriate way of web designing. The header can be used to denote the heading of a blog, a web page, or an article.

Let's look at an example of a header element using the following code snippet:

<!DOCTYPE html>

<html>

<body>

<header>

<h2> Importance of the Header element </h2><hr>

</header>

<p> The header element tells the crawler about the content inside it </p>

</body>

</html>

 

Output:-

Importance of the Header element


The header element tells the crawler about the content inside it

 

❰ Previous Next ❱


HTML5

Submit Your Thought, Tutorial, Articls etc.

Submit Your Information India's Number one online promotion website