Need help to link css file




i am new to html and i want to link my index. file to css file i did this <link rel="stylesheet" type="text/css" href="main.css"> but didt work is this bug on


That looks correct but also assumes your css file is in the same folder as your index file. The path to the file is relative to the root folder of your site. Say, If you placed it into a folder called css, you would prepend the href attribute with css/. You could place a forward slash at the beginning if the index file was in another directory but that’ll break if you was to view it in a folder on your computer.

Not really a bug, just need to point it in the right direction. :slight_smile: