Headings


Separating your text into paragraphs isn't the only way to format your Web pages. HTML enables you to add six different heading tags to your pages by using the tags <h1><h6>. These tags are very simple to use. Look at the following line of code:

<h1>This is Heading 1</h1>


The closing heading tags also create an automatic paragraph break. In other words, all headings automatically include a blank line to separate them from the text. Heading 1, the <h1> tag, has the largest font of the heading tags and Heading 6, the <h6> tag, has the smallest. In fact, you usually only see Web page authors use the <h1><h3> tags because the remaining tags, <h4><h6>, are actually smaller than normal text. Figure 3.4 shows a sample of all the heading tags compared to normal text.

Figure 3.4. Notice that HTML's Heading 4 is the same size as normal text, but Headings 5 and 6 are actually smaller.


Tip

Unless you or the people viewing your pages have adjusted the browser's default settings, normal HTML body text appears in 12 point Times New Roman font on most computer systems.




Sams Teach Yourself HTML in 10 Minutes
Sams Teach Yourself HTML in 10 Minutes (4th Edition)
ISBN: 067232878X
EAN: 2147483647
Year: 2004
Pages: 151
Authors: Deidre Hayes

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net