Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære CSS | Basic Introduction
Introduction to CSS Part I
course content

Kursinnhold

Introduction to CSS Part I

Introduction to CSS Part I

1. Basic Introduction
2. Selectors and Cascade
3. Box Model

book
CSS

CSS, or Cascading Style Sheets, is a style sheet language used to describe a document's look and formatting in a markup language. It is most commonly used to style web pages written in HTML and XHTML but can also be applied to any XML document, including SVG and XUL.

For example, the following CSS code defines a style for a heading element, specifying that it should be displayed in a bold, 24-point font:

css

To apply this style to a heading element on a web page, we simply need to include the appropriate HTML tag and specify the class or id of the style we want to use, like so:

html

We can use a class selector to apply the above style to any element with a class of heading, like so:

css

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 1

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

course content

Kursinnhold

Introduction to CSS Part I

Introduction to CSS Part I

1. Basic Introduction
2. Selectors and Cascade
3. Box Model

book
CSS

CSS, or Cascading Style Sheets, is a style sheet language used to describe a document's look and formatting in a markup language. It is most commonly used to style web pages written in HTML and XHTML but can also be applied to any XML document, including SVG and XUL.

For example, the following CSS code defines a style for a heading element, specifying that it should be displayed in a bold, 24-point font:

css

To apply this style to a heading element on a web page, we simply need to include the appropriate HTML tag and specify the class or id of the style we want to use, like so:

html

We can use a class selector to apply the above style to any element with a class of heading, like so:

css

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 1
Vi beklager at noe gikk galt. Hva skjedde?
some-alt