Ask coding questions

← Back to all posts
How do u link a css file to a html one
aabdvl (1)

so when u connect ur css to ur html

Comments
hotnewtop
SixBeeps (5629)
<link href="NameOfCSSFile.css" rel="stylesheet" type="text/css" />
qualladoom (375)

To start with, open up your html document.. In the header section, add: <*link* rel="*stylesheet*" type="text/*css*" href="PATHTOCSSHERE">.
You want to change "PATHTOCSSHERE" with the path to the css file you are trying to link the html page to.
If my answer helped you, please mark it as answered. Thanks.

Nayoar (585)

(replace /styles/main.css with the location of your CSS file)

Please mark this as answered if you found it helpful!!