The <header> element

The <header> element defines a header for the document or section. It usually contains a logo, search bar, navigation.

Take a look at the example below:

The code:

<!DOCTYPE html>






            <h1>My First Website</h1>




<p> Tom and Jerry, American animated cartoon series about a hapless cat’s never-ending pursuit of a clever mouse </p>


Scroll to Top