There are three ways of inserting a style sheet:
With an external style sheet, you can change the look of an entire website by changing just one file!
Syntax:
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
An internal style sheet may be used if one single HTML page has a unique style.
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
An inline style may be used to apply a unique style for a single element. To use inline styles, add the style
attribute to the relevant element.
<p style="color:red;">This is a paragraph.</p>