Skip to content

Try our new Crash Courses!

Buy one of our new Crash Courses, now hosted on Teachable.

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 Reference