Difference between revisions of "HTML element selector (CSS)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (Created page with "In CSS, an '''HTML element rule''' ('''element rule''', '''tag rule''', '''tag style''') is a style rule which selects zero or more HTML elements base...") |
Karl Jones (Talk | contribs) (→See also) |
||
Line 20: | Line 20: | ||
* [[Cascading Style Sheets]] | * [[Cascading Style Sheets]] | ||
* [[Class rule (CSS)]] | * [[Class rule (CSS)]] | ||
+ | * [[HTML]] | ||
* [[ID rule (CSS)]] | * [[ID rule (CSS)]] | ||
* [[Style sheet (web design)]] | * [[Style sheet (web design)]] |
Revision as of 11:56, 9 February 2016
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>