About
There is three ways to specify CSS rules in HTML:
- External style sheet with the link element
- Internal style sheet with the style element
- Inline style or inline CSS with the style attribute
Methods
External
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
Internal
<style>
a {color:blue;}
</style>
Inline
With inline Css, you use the style attribute to define the style.
<p style="color:blue;">This is a paragraph with an inline Css style.</p>