Style Sheets


HTML Element Types

Block-level elements are those elements of the document language that, by default, are formatted visually as blocks (e.g., paragraphs). Inline elements are those elements of the document language that do not cause paragraph breaks (e.g., pieces of text, inline images, etc.). The rendered content of a replaced element comes from outside the source document (e.g., an image). Rendered content may also be alternate text for an element (e.g., the value of the HTML ALT attribute).

This listing of HTML elements as CSS selectors was extracted from the Compendium of HTML Elementsexternal link, and is provided in two views. The first listing is by type of selector and the second is in alphabetical order.

Selectors by type

Block Selectors:
<address> — block element
<applet> — block element
<blockquote> — block element
<body> — block element
<br> — block element
<center> — block element
<dd> — block element
<dir> — block element
<div> — block element
<dl> — block element
<dt> — block element
<fieldset> — block element
<form> — block element
<frame> — block element
<frameset> — block element
<Hn> — block element
<hr> — block element
<iframe> — block element
<noframes> — block element
<menu> — block element
<object> — block element
<ol> — block element
<optgroup> — block? element
<pre> — block element
<p> — block element
<ul> — block element
In-line Selectors:
<abbr> — in-line element
<abbrev> — in-line element
<acronym> — in-line element
<A> — in-line element
<bdo> — in-line element
<bgsound> — in-line element
<big> — in-line element
<B> — in-line element
<button> — in-line element
<cite> — in-line element
<code> — in-line element
<col> — in-line element
<colgroup> — in-line element
<del> — in-line element
<dfn> — in-line element
<em> — in-line element
<font> — in-line element
<img> — in-line element
<input> — in-line element
<ins> — in-line element
<i> — in-line element
<kbd> — in-line element
<lang> — in-line element
<noembed> — in-line element
<nosmartquotes> — in-line element
<object> — in-line element
<q> — in-line element
<samp> — in-line element
<small> — in-line element
<span> — in-line element
<s> — in-line element
<strike> — in-line element
<strong> — in-line element
<sub> — in-line element
<sup> — in-line element
<tbody> — in-line element
<tfoot> — in-line element
<th> — in-line element
<thead> — in-line element
<tr> — in-line element
<tt> — in-line element
<u> — in-line element
<var> — in-line element
<xmp> — in-line element
List-item Element:
<li> — list-item element
Replaced Elements:
<img> — replaced element
<object> — replaced element
Scripting Elements:
<applet> — scripting element
<script> — scripting element
Tables Elements:
<table> — table element
<td> — table-cell element
<th> — table-cell element
<caption> — table-caption element
<thead> — table-header-group
<tbody> — table-row-group
<tfoot> — table-footer-group
<col> — table-column
<colgroup> — table-column-group

Selectors by alphabetical order

:active — pseudo-class
:after — pseudo-element
:before — pseudo-element
:first — pseudo-class
:first-child — pseudo-class
:first-letter — pseudo-element
:first-line — pseudo-element
:focus — pseudo-class
:hover — pseudo-class
:lang — pseudo-class
:left — pseudo-class
:link — pseudo-class
:right — pseudo-class
:visited — pseudo-class
<A> — in-line element
<abbr> — in-line element
<abbrev> — in-line element
<acronym> — in-line element
<address> — block element
<applet> — block element
<applet> — scripting element
<B> — in-line element
<bdo> — in-line element
<bgsound> — in-line element
<big> — in-line element
<blockquote> — block element
<body> — block element
<br> — block element
<button> — in-line element
<caption> — table-caption element
<center> — block element
<cite> — in-line element
<code> — in-line element
<col> — table-column
<col> — in-line element
<colgroup> — table-column-group
<colgroup> — in-line element
<dd> — block element
<del> — in-line element
<dfn> — in-line element
<dir> — block element
<div> — block element
<dl> — block element
<dt> — block element
<em> — in-line element
<fieldset> — block element
<font> — in-line element
<form> — block element
<frame> — block element
<frameset> — block element
<Hn> — block element
<hr> — block element
<i> — in-line element
<iframe> — block element
<img> — in-line element
<img> — replaced element
<input> — in-line element
<ins> — in-line element
<kbd> — in-line element
<lang> — in-line element
<li> — list-item element
<menu> — block element
<noembed> — in-line element
<noframes> — block element
<nosmartquotes> — in-line element
<object> — in-line element
<object> — block element
<object> — replaced element
<ol> — block element
<optgroup> — block? element
<p> — block element
<pre> — block element
<q> — in-line element
<s> — in-line element
<samp> — in-line element
<script> — scripting element
<small> — in-line element
<span> — in-line element
<strike> — in-line element
<strong> — in-line element
<sub> — in-line element
<sup> — in-line element
<table> — table element
<tbody> — table-row-group
<tbody> — in-line element
<td> — table-cell element
<tfoot> — in-line element
<tfoot> — table-footer-group
<th> — in-line element
<th> — table-cell element
<thead> — in-line element
<thead> — table-header-group
<tr> — in-line element
<tt> — in-line element
<u> — in-line element
<ul> — block element
<var> — in-line element
<xmp> — in-line element
 

Sizzling HTML Jalfrezi
ContactPurchase
Page Contents
Previous pageJalfrezi ContentsNext page

Click Here!