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

CSS element selector

CSS element Selector

Complete CSS SelectorComplete CSS Selector Reference Manual

Example

Selects all

element:

p

{

background-color:

yellow

;

}

Try it »


Definition and Usage

The element The selector selects all elements with the specified element name.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers supportelement selector.


Complete CSS SelectorComplete CSS Selector Reference Manual