css - Attaching a Sass/SCSS to HTML docs -
hello new web design , have many questions it. want learn how attach sass or scss file html file in head tag :
<link href="example" rel="stylesheet/sass" type="text/css"> <link href="example" rel="stylesheet/scss" type="text/css">
i tried did not see result. guess it's less framework. , question: if want use sass or scss should compile hosting or not?
you can not "attach" sass/scss file html document.
sass/scss css preprocessor runs on server , compiles css code browser understands.
there client-side alternatives sass can compiled in browser using javascript such less css, though advise compile css production use.
it's simple adding 2 lines of code html file.
<link rel="stylesheet/less" type="text/css" href="styles.less" /> <script src="less.js" type="text/javascript"></script>
Comments
Post a Comment