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

> (World Wide) Web - (W3|WWW) > CSS - Cascading Style Sheets - Markup Language (HTML|XML) Skin

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

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>
web/css/include.txt · Last modified: 2019/06/19 13:07 by gerardnico