Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn 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

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Awesome!

Completion rate improved to 6.67

bookExternal CSS

Swipe to show menu

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

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
some-alt