html add css to div code example
Example 1: how to link your css file to html
<head>
<link rel='stylesheet' href='style.css'>
</head>
Example 2: how to use css
<link rel="stylesheet" href="stylesheet.css">
<div class="mydiv"></div>
<style>
.mydiv {
background-color: /*Color*/;
color: /*Another color*/;
}
</style>