w3school html css code example
Example 1: how to link css to html
<link rel="stylesheet" href="PathToYourFile.css">
Example 2: CSS IN HTML
<style>
body {
background-color: cyan;
}
</style>
<link rel="stylesheet" type="text/css" href="filename.css"/>
Example 3: CSS IN HTML
<h1 style="color: red;">Red Heading</h1>
<style>
h1 {
color: red;
}
</style>
<h1>Red Heading</h1>
<link rel="stylesheet" href="[stylesheet link]">
Example 4: how to use css
<link rel="stylesheet" href="stylesheet.css">
<div class="mydiv"></div>
<style>
.mydiv {
background-color: ;
color: ;
}
</style>