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

1 - 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.

3 - Methods

3.1 - External


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

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

3.2 - Internal


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


HTML - Style (Element|Embedded Style) - Attribute

3.3 - 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>


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap