css on id and class code example
Example 1: css how to style id
/*put a # infront of the id*/
/*<section id="example"></section>*/
#example{
margin: auto;
}
Example 2: referance html id css
<style>
#test {
/*Styleing here*/
}
</style>
<h1 id="test"></h1>
Example 3: html id
<style>
#grepperHeader {
background-color: lightblue;
color: navy;
padding: 40px;
text-align: center;
}
</style>
<h1 id="grepperHeader">grepperHeader</h1>