how to add the css style to html file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to add the css style to html file?

2nd Jul 2016, 3:23 PM
Akash sundi
Akash sundi - avatar
3 Answers
+ 2
add this code to your HTML file: <link rel="stylesheet" href="your html file name here.html"> this little bit of code must be in your head tag in the starting of your html document.
2nd Jul 2016, 4:40 PM
Deepan Tripathi
Deepan Tripathi - avatar
+ 2
If you don't have much css, you could also add <style> element {css edits} </style> into your head tags. In the style area, use the usual code you would in your css document.
2nd Jul 2016, 5:29 PM
Zafi Shah
Zafi Shah - avatar
+ 2
<link rel="stylesheet" src="*.css" type="text/stylsheet">
3rd Jul 2016, 3:54 AM
mokhtar Nageeb alafif
mokhtar Nageeb alafif - avatar