
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
Include a header for a document or section in HTML5?
Use the <header> tag in HTML5 to add a header. The HTML <header> tag specifies a header for a document or section.
Example
You can try to run the following code to include a header for a document −
<!DOCTYPE html> <html> <head> <title>HTML Header Tag</title> </head> <body> <header> <h1>Simply Easy Learning</h1> <p>You're visiting tutorialspoint.com - tutorial hub for simply easy learning.</p> </header> </body> </html>
- Related Articles
- How do we create a footer for a document or section in HTML5?
- How do we include a section in an HTML document?
- How to define a section in a document in HTML5?
- Include a caption for a element in HTML5
- What happens if we include header file for two times in a C program?
- How to create a section in a document in HTML?
- How to create a header cell in a table using HTML5
- How do we specify whether a header cell is a header for a column, row, or group of columns or rows in HTML?
- How to include the result of a calculation in HTML5?
- How to include Modernizr in HTML document?
- Include information about the document in HTML
- Include meta data in an HTML document
- Section that contains only navigation links in HTML5
- How to define a text element that is inserted into a document in HTML5?
- How to set horizontal header for a table?

Advertisements