Difference between revisions of "HTML element selector (CSS)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) |
Karl Jones (Talk | contribs) (→See also) |
||
(One intermediate revision by the same user not shown) | |||
Line 19: | Line 19: | ||
* [[Cascading Style Sheets]] | * [[Cascading Style Sheets]] | ||
− | * [[Class | + | * [[Class selector (CSS)]] |
* [[HTML]] | * [[HTML]] | ||
− | * [[ID | + | * [[ID selector (CSS)]] |
* [[Style sheet (web design)]] | * [[Style sheet (web design)]] | ||
+ | |||
+ | [[Category:Cascading Style Sheets]] | ||
+ | [[Category:Web design and development]] |
Latest revision as of 08:59, 18 April 2016
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>