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 ...

Get HTML Pocket Reference, Second Edition 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.