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.

Today, 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, and the CSS properties shown in Table 4.2.

Table 4.1. HTML Tags from Lesson 4

Tag

Attribute

Use

<html> .. </html>

 

The entire HTML page.

<head> .. </head>

 

The head, or prologue, of the HTML page.

<body> .. </body>

 

All the other content in the HTML page.

<title> .. </title>

 

The title of the page.

<h1> .. </h1>

 

First-level heading.

<h2> .. </h2>

 

Second-level heading.

<h3> .. </h3>

 

Third-level heading.

<h4> .. </h4>

 

Fourth-level heading.

<h5> .. </h5>

 

Fifth-level heading.

<h6> .. </h6>

 

Sixth-level heading.

<p> .. </p>

 

A paragraph.

<ol>...</ol>

 

An ordered (numbered) list. Each of the items in the list begins with <li>.

 

type

Specifies the numbering scheme to use in the list. This attribute is deprecated in HTML 4.01.

 

start

Specifies at which number to start the list. This attribute is deprecated in HTML 4.01.

<ul>...</ul>

 

An unordered (bulleted or otherwisemarked) list. Each of the items in the list begins with <li>.

 

type

Specifies the bulleting scheme to use in the list. This attribute is deprecated in HTML 4.01.

<li>...</li>

 

Individual list items in ordered, unordered, menu, or directory lists. The closing tag is optional in HTML, but is required in XHTML 1.0.

 

type

Resets the numbering or bulleting scheme from the current list element. Applies only to <ul> and <ol> lists. This attribute is deprecated in HTML 4.01.

 

value

Resets the numbering in the middle of an ordered (<ol>) list. This attribute is deprecated in HTML 4.01.

<dl>...</dl>

 

A glossary or definition list. Items in the list consist of pairs of elements: a term and its definition.

<dt>...</dt>

 

The term part of an item in a glossary list. Closing tag is optional in HTML, but required in XHTML 1.0.

<dd>...</dd>

 

The definition part of an item in a glossary list. Closing tag is optional in HTML, but required in XHTML 1.0.

<!-- .. -->

 

A comment.


Table 4.2. CSS Properties from Lesson 4

Property

Use/Values

list-style-type

Used to specify the bullet style or numbering style for the list. Valid values are disc, circle, square, decimal, lower-roman, upper-roman, lower-alpha, upper-alpha, and none.

white-space

Specifies how white space is handled for list items. Valid values are pre, nowrap, and normal.

list-style-image

The image to use in place of the bullets for a list. The value should be the URL of the image.

list-style-position

Defines the alignment of lines of text in list items after the first. Values are inside and outside.

list-style

Enables you to set multiple list properties at once: list style type, list style position, and the URL of the bullet style.





Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

Similar book on Amazon

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