A Type Selector (sometimes referred to as an Element Type Selector) matches elements with the corresponding element node name, such as <p>, <span>, and <div> tags. Type selectors are generally used to make “broad stroke” changes to the style of a site. p { /* “p” is the type selector */ margin: 0 0 1em 0; } Common Usage
T
The :target pseudo selector in CSS matches when the hash in the URL and the id of an element are the same. For example, if the current URL is: http://csspark.com/#categories And this existed in the HTML: <section id=”categories”> Content </section> This selector would match: :target { background: yellow; } And that section element would have a yellow background. With