Skip to content
Justice Tech School

Header and Footer

header holds introductory content such as a logo and navigation. footer holds closing content such as copyright and links. A page and each section can have its own.

Example
<header style="background:#134e4a;padding:8px"><h2>Site name</h2></header>
<p>Page content</p>
<footer style="background:#1e293b;padding:8px">&copy; 2026</footer>

Exercise

Closing content element.

<>&copy; 2026</footer>

Quiz Test

Can a section have its own header?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.