html tutorial - <header> Tag in HTML - html5 - html code - html form

header tag

Learn html - html tutorial - header tag - html examples - html programs

  • The <header> tag used as a container for introductory or navigational links.
  • <header> tag usually contains heading elements or other elements such as Logo or icon, a search form, one or more heading elements (<h1>to<h6>).
  • <header> tag supports Global Attributes and Event Attributes.
  • <header> tag belongs to Flow content and palpable content.

Syntax for <header> tag:


Differences between HTML 4.01 and HTML 5 for <header> tag in HTML:

HTML 4.0.1

  • HTML4 does not support <header> tag.


  • HTML5 supports <header> tag.

Sample Coding for <header> tag:

Tryit<!DOCTYPE html>
        <title>Wikitechy header tag</title>
            <h1>Wikitechy </h1>
            <p>Wikitechy is an enhanced tutorials zone providing 
            the best learning curve.</p>

Code Explanation for <header> tag:

<header> Tag Code Explanation

  1. <header> tag used as a container for introductory contents.

Output for <header> tag:

<header> Tag Output

  1. The output shows the multiple header information.

Browser Support for <header> tag in HTML:

6.0 9.0 4.0 5.0 11.1

Tips and Notes

  • We cannot use the <header> tag within a <footer>, <address> or another <header> tag.

Related Searches to header tag in html

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add to your ad blocking whitelist or disable your adblocking software.