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>

see HTML - The link element (inter-document relationships)

Internal

<style>
      a {color:blue;}
</style>

HTML - Style (Element|Embedded Style) - Attribute

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>