HTML and CSS Reference
In-Depth Information
Summary
HTML, a text-only markup language used to describe hypertext pages on the World
Wide Web, describes the structure of a page, not its appearance.
In this lesson, you learned what HTML is and how to write and preview simple HTML
files. You also learned about the HTML tags shown in Table 4.1.
TABLE 4.1
HTML Tags from Lesson 4
Tag
Attribute
Use
The entire HTML page
<html> .. </html>
The head, or prologue, of the HTML page
<head> .. </head>
All the other content in the HTML page
<body> .. </body>
The title of the page
<title> .. </title>
First-level heading
<h1> .. </h1>
Second-level heading
<h2> .. </h2>
Third-level heading
<h3> .. </h3>
Fourth-level heading
<h4> .. </h4>
Fifth-level heading
<h5> .. </h5>
Sixth-level heading
<h6> .. </h6>
A paragraph
<p> .. </p>
Workshop
You've learned a lot in this lesson, and the following workshop can help you remember
some of the most important points. I've anticipated some of the questions you might
have in the first section of the workshop.
Q&A
Q In some web pages, I've noticed that the page structure tags ( <html> , <head> ,
<body> ) aren't used. Do I really need to include them if pages work just fine
without them?
A Most browsers handle plain HTML without the page structure tags. The XHTML
1.0 recommendation requires that these tags appear in your pages. It's a good idea
to get into the habit of using them now. Including the tags allows your pages to be
read by more general SGML tools and to take advantage of features of future
browsers. And using these tags is the correct thing to do if you want your pages to
conform to true HTML format.
 
 
 
 
Search WWH ::




Custom Search