CSS - Style declaration (Inline - (External|Internal) Style sheet)

About

There is three ways:

  • External style sheet
  • Internal style sheet
  • Inline style or inline CSS. Styling is done in the HTML file without worrying about a separate CSS file.

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>

Powered by ComboStrap