Headers

HTML provides 6 levels of headers for us to display text as a title/header of the content. The header uses <h1>…</h1> for the largest font size, and <h6>…</h6> for the smallest font size. Try this code in your notepad:

<html>

<head><title>My Header!</title></head>

<body>

<h1>Header 1</h1>

<h2>Header 2</h2>

<h3>Header 3</h3>

<h4>Header 4</h4>

<h5>Header 5</h5>

<h6>Header 6</h6>

</body>

</html>

See what’s displayed on the screen, you will see all levels of headers, with different font size.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.