how to style a div in html code example
Example 1: css how to style a div
/*
<div class="#">
<p>Hello World</p>
</div>
*/
/*put a dot in front of the name from your class*/
.#{
display: block;
margin: auto;
width: 50%;
}
Example 2: html div tag
<div></div>
Example 3: html div
//div tag
<div>
//content
</div>
//a div is an invisible box