HTML Header – What is <header> Tag?
The <header> element define a page or section header. A logo, a search bar, links for navigation, etc., are often included.
This tag doesn’t introduce a new outline section. The heading (an h1>-h6> element) of the section it surrounds is frequently contained in a header> element. However, it’s not necessary.
<!DOCTYPE html> <html> <body style="font-size: 25px;"> <h1 style="color: green;">Intern T point</h1> <h3>HTML Header Tag</h3> <hr> <article> <header> <h3 style="color: green;"> Intern T point Learning </h3> <p>Posted by GFG</p> <p> A Computer Science portal for geeks. It contains well written, well thought <br> and well explained computer science and programming articles. </p> </header> </article> </body> </html>
Header Elements for HTML
The head section of an HTML page, which provides information about the document, is defined by the <head> element. The <head> tag contains the header components, such as <title>, <meta>, <link>, <style>, and so on.
<!DOCTYPE html> <html> <body style="font-size: 25px;"> <h1 style="color: green;">Intern T Point</h1> <h3>HTML Header Tag</h3> <hr> <article> <header> <h3 style="color: green;"> Intern T Point Learning </h3> <p>Posted by GFG</p> <p> A Computer Science portal for geeks. It contains well written, well thought <br> and well explained computer science and programming articles. </p> </header> </article> </body> </html>
An HTML document’s head is a section of the document whose content is not seen by the user when the page loads in the browser. Only HTML document metadata information about the HTML document is included.