Tag Groups
The following lists group HTML tags by similar function. See Section 1.2 for complete descriptions of each tag.
Structural Tags
The following tags are used primarily to give the document structure.
<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> |
<font> |
<i> |
<s> |
<small> |
<strike> |
<sub> |
<sup> |
<tt> |
<u> |
List Tags
<dir> (deprecated) |
<dl> |
<dd> |
<dt> |
<li> |
<menu> (deprecated) |
<ol> |
<ul> |
Spacing and Positioning Tags
The following tags give authors control over the line breaks, alignment, and spacing within an HTML document.
<br> |
<center> (deprecated) |
<nobr> |
<pre> |
<spacer> |
<table> (<th>, <tr>, <td>) |
<wbr> ... |
Get HTML Pocket Reference 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.