Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele External CSS | Getting Started with CSS
CSS Foundations

bookExternal CSS

index.html

index.html

style.css

style.css

copy

You use the <link> tag in the <head> section of your HTML document to connect an external CSS file. The most important attributes for this tag are rel and href. The rel attribute describes the relationship between the HTML and the linked file, and should be set to "stylesheet" for CSS files. The href attribute specifies the path to your CSS file. Linking an external stylesheet allows you to keep your CSS rules in a separate file, making your HTML cleaner and your styles easier to maintain or reuse across multiple pages.

question mark

Which HTML tag is used to link an external CSS file to your HTML document?

Select the correct answer

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Awesome!

Completion rate improved to 6.67

bookExternal CSS

Pyyhkäise näyttääksesi valikon

index.html

index.html

style.css

style.css

copy

You use the <link> tag in the <head> section of your HTML document to connect an external CSS file. The most important attributes for this tag are rel and href. The rel attribute describes the relationship between the HTML and the linked file, and should be set to "stylesheet" for CSS files. The href attribute specifies the path to your CSS file. Linking an external stylesheet allows you to keep your CSS rules in a separate file, making your HTML cleaner and your styles easier to maintain or reuse across multiple pages.

question mark

Which HTML tag is used to link an external CSS file to your HTML document?

Select the correct answer

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
some-alt