Team LiB
Previous Section Next Section

HTML Quick Reference

Table 21-6 provides a quick reference to common tags used to build HTML pages.

Table 21-6: Common HTML Tags

Tag

Description

STRUCTURAL

<html> </html>

Encloses HTML script

<head> </head>

Head of the page

<title> </title>

Title of the page in the browser

<body> </body>

Body of the page

<!--

Comments

TEXT

<p> </p>

Paragraph text

<div> </div>

Block of content

<span> </span>

Inline content

<br/>

Line break

<hr/>

Horizontal line (rule)

<font> </font>

Font for text

<b> </b>

Bold

<i> </i>

Italics

<h1>..</h6>

Headers

<tt> </tt>

Typewriter text

LIST

<ul> </ul>

Unordered bulleted list

<ol> </ol>

Ordered numbered list

<li> </li>

Item in a list

<dl> </dl>

Definition list

<dt> </dt>

Term in a definition list

<dd> </dd>

Definition in a definition list

TABLE

 

<table> </table>

Table

<tr> </tr>

Table row

<td> </td>

Cell

<th> </th>

Table heading

<caption> </caption>

Table caption

FORM

 

<form> </form>

Form

<input> </input>

Input field

<select> </select>

Selection list

<option> </option>

Option form

<textarea> </textarea>

Scrolling, multiline text field

MISCELLANEOUS

<img> </img>

Image

<a> </a>

Anchor hyperlink

<map> </map>

Image map

<area> </area>

Area within an image map

<meta> </meta>

Page information

<style> </style>

Style sheet

<link/>

Link to an external file


Team LiB
Previous Section Next Section