Example :

To Select all elements, and set their background color to yellow.

<!-- To Select all elements, and set their background color to yellow. -->
<!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 Selector</title>
    <style>
        * {
            background-color: yellow;
            color: red;
        }
    </style>
</head>

<body>
    <h1>Welcome to CSS Webpage </h1>
    <center>By Vikram Sharma G <br>
        I live in UP.</center>
    <p>So, We are gaining knowledge.</p>
</body>

</html>

OUTPUT

cssseletror
[social_share_button themes='theme1']

Leave a Comment