+ 1
How how to add external css to html file
Anyone to help me please, Iâve been trying to add an external css to my html on VSCode but I donât seem to get it well. Iâll appreciate if I can get anyone to help me through step by step please.
1 Answer
+ 3
This should not only work with Visual Studio but anything else as well.
First find the directory of the file. If it is in the same directory of the html then use
<link rel=âstylesheetâ href=â<stylesheetname>.cssâ>
Inside your header tag
If its in a directory (or multiple) use:
<link rel=âstylesheetâ href=â<directory/stylesheet>.cssâ>
If you are using something else, like flask (python web framework) you may need to use something else to link it.