12 Şubat 2013 Salı

HTML Beginner - Headings

Headings

The p tag is just the start of text formatting.
If you have documents with genuine headings, then there are HTML tags specifically designed just for them.
They are h1,h2,h3,h4,h5 and h6, h1 being the almighty emperor of headings and h6 being the lowest pleb.
Change your code to the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>
 <title>My first web page</title>
</head>

<body>
 <h1>My first web page</h1>

 <h2>What this is</h2>
 <p>A simple page put together using HTML</p>

 <h2>Why this is</h2>
 <p>To learn HTML</p>
</body>

</html>

Hiç yorum yok:

Yorum Gönder