HTML and CSS Reference
In-Depth Information
33
Figure 2-1: The title appearing on Web pages and tabs.
<!
DOCTYPE HTML
>
<
html
>
<
head
>
<
title
>
Title goes here
</
title
>
</
head
>
<
body
>
Content goes here: A Really Swell Page
</
body
>
</
html
>
As you proceed in this topic, you'll i nd more and more structural elements to include.
However, the preceding few lines will get you of and running with your Web pages.
IDENTIFYING THE PARTS OF A TAG
Up to this point, I've used the terms tag and element more or less interchangeably. However,
the element is just one part of a tag. Each tag has attributes and the attributes have values. So,
tags are better conceived of in the following terms:
Element:
h e name
Attribute:
Some characteristic of the element
Values:
A state or condition of the attribute