तत्व तत्व का उपयोग करें किसी अन्य तत्व के अंदर सभी तत्वों का चयन करने के लिए चयनकर्ता।
तत्व तत्व . को लागू करने के लिए आप निम्न कोड को चलाने का प्रयास कर सकते हैं चयनकर्ता,
उदाहरण
<!DOCTYPE html>
<html>
<head>
<style>
div p {
color: white;
background-color: blue;
}
</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>