I add all the CSS codes inside <head> <style> code CSS </style> </head> ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I add all the CSS codes inside <head> <style> code CSS </style> </head> ??

5th Mar 2017, 3:52 PM
Anderson Borges
Anderson Borges - avatar
4 Answers
+ 3
Try this: <link href="pathtoyourcssfile.css" rel="text/css" type="stylesheet"/> The path can be relative or absolute, which means: Exemple of absolute: C:\\mywebsite\css\file.css Exemple of relative: css/files.css the relative path depend of where is your html file. in my exemple .html file would be there C:\\mywebsite\ Don't forget to create your external CSS file =)
5th Mar 2017, 4:09 PM
Geoffrey L
Geoffrey L - avatar
+ 2
You can do that but it's still better to make external your CSS with <link> tag.
5th Mar 2017, 3:54 PM
Geoffrey L
Geoffrey L - avatar
+ 1
Damn I realize that once again I mistaken between "rel" and "type" That's <link href="pathtoyourcssfile.css" type="text/css" rel="stylesheet"/> not <link href="pathtoyourcssfile.css" rel="text/css" type="stylesheet"/>
5th Mar 2017, 4:18 PM
Geoffrey L
Geoffrey L - avatar
0
How do I get My CSS code link?
5th Mar 2017, 3:57 PM
Anderson Borges
Anderson Borges - avatar