<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Universal Selectors</title>
</head>
<body>
<div class="container">
<div class="orange">This is a div element</div>
<span>This is a span element</span>
<span>This is a span element</span>
<ul>
<li>First li element </li>
<li>Second li element </li>
<li>Third li element </li>
<li>Fourth li element </li>
<li>Fifth li element </li>
</ul>
</div>
<div>
<span>
<h3> This is heading inside span element</h3>
</span>
</div>
</body>
</html>
/* Selecting all li elements inside ul */
ul li {
background-color: #edc126;
}
/* Selecting all span elements inside div */
div span {
background-color: #35bdd0;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.