Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Header Element
Header Element

Header is a HTML5 semantic element used to specify the header for a document or section. Header contains imporatant information such as page details, contact, about page etc visible to users.

Syntax

<header>Content</header>


You can define one or more than one headers in a document.


Example

header


Practice Task

Open notepad or any other text editor, follow the following points.


  • Use <header> element to create header
  • Inside <header> element create one heading 2 and one paragraph
  • Assign text "Header" to heading 2 and text "paragraph inside header" to paragraph
  • Use CSS to style header but apply no background color to header

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

header

Paragraph inside header