DEV Community

Bharath kumar
Bharath kumar

Posted on

Header vs head tag

Head:
The

<head>
Enter fullscreen mode Exit fullscreen mode

HTML element contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets. There can be only one

element in an HTML document.

Header:
The

<header>
Enter fullscreen mode Exit fullscreen mode

HTML element represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.

Reference:https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/header

Top comments (0)