How how to add external css to html file | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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