Paragraphs
and Headings
Our
document, as noted previously, is comprised of a heading and two
paragraphs. HTML has elements specifically designed to denote headings
and paragraphs. Paragraphs are simply denoted by the P element.
Headings are a bit more complicated, as you can have as many as
six levels of headings. These are represented by the H1, H2, H3,
H4, H5 and H6 elements. The following example shows paragraphs and
multiple levels of headings in action:
Now
let's mark up our text with the appropriate tags and insert it into
our HTML document:
That's
it! We're finished! The above is a complete, valid HTML document.
You can take a break and have a look at how your browser renders
it.
You
might have noticed that this page is not the pinnacle of Web design,
for various reasons. However, it's a start, and what you've learned
today are things you'll need for every single HTML document you
ever design. In our next tutorial, in two weeks time, we'll explore
the concept of hypertext links and insert some in our document.
And since we'll need to link with something, we'll create a product
catalog for Acme as well.
More About HTML
HTML
Author
Elements of HTML
Paragraphs and Headings
What is HTML Made Of
|