O'Reilly logo

HTML Pocket Reference, Second Edition by Jennifer Niederst Robbins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tag Groups

The following lists group HTML tags by similar function. See the Section 1.4 section for complete descriptions of each tag.

Structural Tags

The following tags are used primarily to give the document structure.

<!DOCTYPE>
<base>
<body>
<head>
<html>
<link>
<meta>
<title>

Text Tags: Block-Level Elements

Block-level elements are always formatted with a line-break before and after, with most adding some amount of additional space above and below as well.

<address>
<blockquote>
<dd>
<div>
<dl>
<dt>
<h1> through <h6>
<li>
<ol>
<p>
<ul>

Text Tags: Inline Styles

The following tags affect the appearance of text. “Inline” means they can be applied to a string of characters within a block element without introducing line breaks.

<b>
<big>
<cite>
<code>
<em>
<font> (deprecated)
<i>
<kbd>
<pre>
<s> (deprecated)
<samp>
<small>
<span>
<strike> (deprecated)
<strong>
<sub>
<sup>
<tt>
<u> (deprecated)
<var>

Text Tags: Logical Styles

Logical or content-based styles describe the enclosed text’s meaning, context, or usage and leave rendering of the tag to the browser.

<abbr>
<acronym>
<cite>
<code>
<del>
<div>
<em>
<ins>
<kbd>
<q>
<samp>
<span>
<strong>
<var>

Text Tags: Physical Styles

Physical styles provide specific display instructions.

<b>
<big>
<blink> (Navigator only)
<font> (deprecated)
<i>
<s> (deprecated)
<small>
<strike> (deprecated)
<sub>
<sup>
<tt>
<u> (deprecated)

List Tags

<dir> (deprecated)
<dl>
<dd>
<dt>
<li>
<menu> (deprecated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required