How to link css file to html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to link css file to html

21st Oct 2021, 3:15 AM
Ashish Pal
6 Answers
+ 4
<link rel="stylesheet" href="styles.css"> you can include it in head, and instead of styles you can use your file name.
21st Oct 2021, 3:36 AM
Saurabh
Saurabh - avatar
+ 1
On your html file we need to type on your head tag <head> <link rel="stylesheet" href="css_file_name.css"> </head>
21st Oct 2021, 3:37 AM
Danielle Bagaforo Meer
Danielle Bagaforo Meer - avatar
21st Oct 2021, 7:27 AM
Ipang
+ 1
<link type=”text/css” rel="stylesheet" href="styles.css"> we can link more than one stylesheet link tag should be in head section
22nd Oct 2021, 1:18 PM
sree harsha
sree harsha - avatar
+ 1
Thnx for everyone
22nd Oct 2021, 2:56 PM
Ashish Pal
0
Glad that you got it, Ashish Pal There is one feature called " mark as best " if you got satisfied with any answer then you can mark is as best! So that other can also find it without any difficulty I am suggesting you because you seems new to discussion section. Regards!!
22nd Oct 2021, 6:11 PM
Saurabh
Saurabh - avatar