ในการเลือกองค์ประกอบทั้งหมด ให้ใช้ * ตัวเลือก CSS คุณสามารถลองเรียกใช้รหัสต่อไปนี้เพื่อเลือกองค์ประกอบทั้งหมด
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
*{
color: blue;
background-color: orange;
}
</style>
</head>
<body>
<h1>Demo Website</h1>
<h2>Learning</h2>
<p id = "tutorials">Tutorials on web dev, programming, database, networking, etc.</p>
<p>Every tutorials has lessons with illustrations and figures.</p>
</body>
</html>