How to link CSS with HTML?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to link CSS with HTML??

15th Feb 2018, 11:32 AM
Jatin khajuria
Jatin khajuria - avatar
5 Answers
+ 1
thanks shin
15th Feb 2018, 11:48 AM
Jatin khajuria
Jatin khajuria - avatar
0
ok thanks but why somewhere it is written as www._____.com/.what is it
15th Feb 2018, 11:41 AM
Jatin khajuria
Jatin khajuria - avatar
0
The most websites use modRewrite and so they have to set a direct link to they CSS file. On modRewrite "Domain.com/news/article.html" html want to search the css file in the directory above and it doesnt exists there. without a correct htaccess rule the Best Way is to set the Full path.
15th Feb 2018, 11:46 AM
Shin Lin
- 1
15th Feb 2018, 11:40 AM
Shin Lin
- 2
their is a Style tag in which You can write your code <style src="file name.css"></style>
15th Feb 2018, 11:39 AM
Eeshan Narula
Eeshan Narula - avatar