how to use css
snippet in html

external style sheet

user1010

<link rel="stylesheet" type="text/css" href="mystyle.css">

how to link your css file to html

user6576

<link rel="stylesheet" href="styles.css">

how to link css to html

user1608

  <link rel="stylesheet" href="PathToYourFile.css">

inline style css syntax

user9558


  <!DOCTYPE html>
<html>
<body>

<h1 style="color:blue;text-align:center;">This 
  is a heading</h1>
<p style="color:red;">This is a paragraph.</p>


  </body>
</html> 

how to write css in html

user8882

<p style="color: blue; font-size: 46px;">

how to use css

user8229

<link rel="stylesheet" href="stylesheet.css">
<div class="mydiv"></div>
<style>
.mydiv {
background-color: /*Color*/;
color: /*Another color*/;
}
</style>