Datasheet

22
An introduction to HTML
Adobe Dreamweaver CS4 Digital Classroom
1
For more information on formatting text with CSS rules, please see Lesson 3, “Adding Text
and Images.”
7 Choose File > Save to save your work, then choose File > Close.
The structure of an HTML document
Although you use many HTML tags to format text, certain tags are devoted to establishing
structures, such as lists, tables, or, most importantly, the HTML documents themselves. The
HTML tag is the most fundamental tag. It is used to specify the beginning and end of HTML
in a document:
<html></html>
Inside the main HTML tags are two tags that de ne the key areas of your web page: the head
and the body. The head of your page contains items that are not visible to your user, but are
important nonetheless, such as search engine keywords, page descriptions, and links to outside
scripts or style sheets. You create the head of the document inside the HTML tags using the
<head> tag:
<html>
<head></head>
</html>
The body of your page is where all the visible elements of your page are contained. Here is
where you place and format text, images, and other media. You de ne the body of the page
using the
<body> tag:
<html>
<head></head>
<body>
My text and pictures go here...
</body>
</html>
Whenever you create a new HTML document in Dreamweaver, this framework is created
automatically before you add anything to the page. Any visual elements you add to the page are
added, using the appropriate HTML code inside the <body> tags.
DWCS4.indb 22DWCS4.indb 22 9/10/2008 3:24:22 PM9/10/2008 3:24:22 PM