Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS element,element selector

CSS element,element Selector

Complete CSS SelectorComplete CSS Selector Reference Manual

Example

Selects all

element and

element:

h1

,

p

{

background-color:

yellow

;

}

Try it »


Definition and Usage

Several elements share the same style; separate each element name with a comma.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support element,elementselector.


Complete CSS SelectorComplete CSS Selector Reference Manual