+ 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.

12th Apr 2022, 2:36 PM
Habib Ayuba
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.
12th Apr 2022, 3:52 PM
Dev-117
Dev-117 - avatar