Skip to content
Sign upLog in
← Back to Community
How do u link a css file to a html one
Profile icon
aabdvl

so when u connect ur css to ur html

Voters
Profile icon
DavidFresneda
Profile icon
Wheatstore
Profile icon
it21083846
Profile icon
angelachen2005
Profile icon
aabdvl
Comments
hotnewtop
Profile icon
SixBeeps
Profile icon
[deleted]

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.

Profile icon
MuhammadHasnai3

nahi

Profile icon
Nayoar
<head> <!-- Other stuff inside head --> <link rel="stylesheet" src="/styles/main.css"> </head>

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

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