English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

CSS参考手册

CSS @规则(RULES)

CSS属性大全

CSS element selector

Complete CSS selector reference manual

Online example

Select all <p> elements :

<!DOCTYPE html>
<html>
<title>Basic Tutorial Website (oldtoolbag.com)</title>
<head>
<style>
p
{
background-color:green;
color:white;
}
</style>
</head>
<body>
<h1>Welcome to Basic Tutorial Website (www.oldtoolbag.com)</h1>
<p>The URL of our website is: www.oldtoolbag.com.</p>
<p>The name of our website is: Basic Tutorial Website. </p>
<p>Learn various basic tutorials provided by us, master the basics, and you can go further! </p>
</body>
</html>
Test and see ‹/›

Definition and usage

element Element selectors select all elements with the specified element name.

Browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers supportelement Selector.

Complete CSS selector reference manual