+ 2

How can I link a css file to html file??

How should I give a value to rel attribute in link tag to attach and link a css file????

19th Jul 2019, 6:49 AM
Masoud
Masoud - avatar
7 Answers
+ 1
My problem is that what stylesheet is???
19th Jul 2019, 7:00 AM
Masoud
Masoud - avatar
+ 1
And the value of rel is always "stylesheet"???
19th Jul 2019, 8:06 AM
Masoud
Masoud - avatar
+ 1
For most websites, yes. You can do some more advanced things with it but you should rarely need to. Masoud
19th Jul 2019, 8:10 AM
Frenchtoast
Frenchtoast - avatar
0
<link rel="stylesheet"href="styles.css"> Use this you can also add type =text/css
19th Jul 2019, 6:52 AM
Ankul Chaudhary
Ankul Chaudhary - avatar
0
You can get more information about "rel" and its value which is "stylesheet" in our case in the link below https://www.sitepoint.com/rel-html-attribute/
24th Jul 2019, 4:23 PM
#Eldritch
#Eldritch - avatar
- 1
A stylesheet is a code file that gives a website colors/designs/etc
19th Jul 2019, 7:54 AM
Frenchtoast
Frenchtoast - avatar