HTML element selector (CSS)

From Wiki @ Karl Jones dot com
Revision as of 11:05, 16 February 2016 by Karl Jones (Talk | contribs) (Karl Jones moved page HTML element rule (CSS) to HTML element selector (CSS))

Jump to: navigation, search

In CSS, an HTML element rule (element rule, tag rule, tag style) is a style rule which selects zero or more HTML elements based on the type of element.

Example

Class style rule:

p { color: red; }

Note that the "p" indicates a paragraph tag.

All paragraphs on the page will be affected by the above rule.

<p>...</p>
<p class="example">...</p>

See also