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

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>





Discover More
CSS - Cascading (style rules priority scheme)

CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned...
CSS - Cascading Style Sheets - Markup Language ( HTML |XML) Skin

CSSHTML CSS is a language for describing the rendering of structured documents (such as HTML and XML) on screen, on paper, in speech, etc. CSS = Skin of HTML SVG XML World Wide Web Consortium...
CSS - Style Sheet (Script|File) - Stylesheet

A stylesheet is a list of rules that specify the presentation of a source document. The stylesheet is a combination of : the external files with the suffix css defined via the HTML link element the...
HTML - Style (Element|Embedded Style) - Attribute

Style in HTML is: an and/of an that permit to declare a style. declarelink element The style element allows style information to be embedded in documents. An style element should be inside...
Page Loading Key Moment
Web - Timeline of a page load (Page Speed|Page Latency)

Page load is the latency performance metrics that cumulates: TCP latency (ie how fast, the network will receive the HTTP request and send back the HTTP response ) HTTP latency (ie how fast the web...



Share this page:
Follow us:
Task Runner