HTML HEADER

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>

<html>

<head>

            <title></title>

</head>

<header>

            <h1>My First Website</h1>

             </header>

<body>

            <hr>

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

</body></html>

Scroll to Top