© Mikael Olsson 2019
Mikael OlssonCSS3 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4903-1_1

1. Using CSS

Mikael Olsson1 
(1)
Hammarland, Finland
 

There are three ways to insert CSS into an HTML document: by using an internal style sheet, inline styles, or an external style sheet. An internal style sheet applies to a single page, an inline style to a single element, and an external style sheet to potentially an entire web site.

Internal Style Sheet

An internal style sheet is useful when a single document needs to have its own unique styling. The style sheet is then embedded within the <head> section of the web document using the <style> element. This element is a container for style sheet rules and should have its type attribute set to ...

Get CSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.