selectt everything css code example
Example 1: css aplying everything
* {
/*
Put in styling that you would apply to everything , the '*' means everything
*/
}
Example 2: . and # in css
<!DOCTYPE html>
<html>
<head>
<style>
.classname {
background-color: green;
color: white;
}
#idname {
background-color: pink;
color: white;
}
</style>
</head>
<body>
<div class="classname">I am green colour<div>
<div id="idname">I am pink colour</div>
</body>
</html>