HTML element selector (CSS)

From Wiki @ Karl Jones dot com
Revision as of 10:06, 16 February 2016 by Karl Jones (Talk | contribs) (See also)

Jump to: navigation, search

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

Example

HTML element selector:

p { color: red; }

Note that the "p" indicates a paragraph element.

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

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

See also