Publish in HTML Tutorial el 24/05/2025 15:05
The <header> element represents introductory content for its nearest ancestor sectioning content or sectioning root element. It typically contains headings (h1-h6), logos, search forms, navigation, or author information. Unlike the <head> element which contains metadata, the <header> is visible content.
Key characteristics:
Here's the basic structure of a <header> element:
A simple header containing a title and subtitle:
A common pattern combining navigation within the header:
Header used within an article element:
Header that changes based on user interaction:
A header that sticks to the top when scrolling:
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...