Skip to content

Help us create more tutorials! Make a donation using the Donate button or become a member using the button below to hide this banner and track your progress.

How to use Sass in a web project

Details

If you’re using Sass on a web project, it’s important that you link to the CSS output file instead of the Sass source code, since the browser can’t read Sass code.

For example, if you have an index.html file, a main.scss file and the main.css output file all in the same folder, you will want to link to the CSS file:

<link rel="stylesheet" href="./main.css">

If your CSS file is in a separate folder, such as an assets folder, you will want to include that in the file path:

<link rel="stylesheet" href="./assets/main.css">

Exercises

There are no exercises for this lesson.

Back to: Sass Course