how to use style in html code example

Example 1: how to link css to html

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

Example 2: connext html file to css

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

Example 3: how to link css to html

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

Example 4: html style tag

<html>
<head>
<style>
  h1 {color:red;}
  p {color:blue;}
</style>
</head>
<body>

<h1>A heading</h1>
<p>A paragraph.</p>

</body>

Example 5: how to add css to html

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

Example 6: where do you put style tags in html

// Style tags belong in <head>