หากต้องการจัดรูปแบบ มากกว่าหนึ่งองค์ประกอบ ให้ใช้เครื่องหมายจุลภาค แยกแต่ละองค์ประกอบด้วยเครื่องหมายจุลภาคเพื่อให้บรรลุเป้าหมายนี้ คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อเลือก
และ
องค์ประกอบ
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
div, p {
color: blue;
background-color: orange;
}
</style>
</head>
<body>
<h1>Demo Website</h1>
<h2>Fruits</h2>
<p>Fruits are good for health.</p>
<div>
<p>This is demo text.</p>
</div>
</body>
</html>