Appendix A. HTML Tags

Basic Tags/Attributes

Tag/Attribute

Description

<!-->

Inserts a comment

<!DOCTYPE>

Indicates what version of HTML is used

<BODY>

Identifies content on a Web page

<BR>

Creates a new line

<H1>, <H2>, <H3>, <H4>, <H5>, <H6>

Creates heading levels

<HEAD>

Contains information about a Web page title, style sheets, and search engine keywords

<HTML>

Identifies an HTML document

<META>

Contains extra information about the Web page

CONTENT

Specifies custom information about a page

NAME

Adds description or copyright information to a Web page

<P>

Starts a new paragraph

ALIGN

Aligns a paragraph

<TITLE>

Creates a title for a Web page

Text Formatting Tags/Attributes

Tag/Attribute

Description

<B>

Bolds text

<BASEFONT>

Specifies a default font for the entire page

COLOR

Specifies ...

Get Teach Yourself VISUALLY™ HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.