CSS element,elementSelectors

Complete CSS Selector Reference Manual

Example

Select All<p>elements and<h1>Element:

h1,p { background-color:yellow; }

Try it Yourself »

Definition and Usage

When several elements have the same style, separate each element's name with a comma.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All mainstream browsers support itelement,elementSelector.


Complete CSS Selector Reference Manualother extensions