Why can't my css link with my html page | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why can't my css link with my html page

Wen I had link in html and css it won't display the color that I have coded

11th May 2023, 11:46 AM
Mbajjwe Arnold
Mbajjwe Arnold - avatar
10 Answers
+ 7
Mbajjwe Arnold use proper relevant tags and Share your code here. Without seeing no one can find out errors. see this and learn what is your mistake ... https://code.sololearn.com/WINKO2eA1AhG/?ref=app
11th May 2023, 12:10 PM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 5
in CSS, dot notation signifies a user-defined class, not a subheading. Remove the dots from everything that's a tag name directly (header, div, etc) and decide whether you want to use <div id="nav-links"> with #nav-links, or <div class="nav-links"> with .nav-links (useful if you plan to have multiple separate nav-links sections).
11th May 2023, 1:18 PM
Orin Cook
Orin Cook - avatar
11th May 2023, 12:24 PM
Mbajjwe Arnold
Mbajjwe Arnold - avatar
+ 1
<link rel="stylesheet" href="style.css" />
11th May 2023, 6:52 PM
Sony
Sony - avatar
0
Ok
11th May 2023, 12:23 PM
Mbajjwe Arnold
Mbajjwe Arnold - avatar
0
I have tried this
11th May 2023, 6:58 PM
Mbajjwe Arnold
Mbajjwe Arnold - avatar
0
Check out my code
11th May 2023, 6:58 PM
Mbajjwe Arnold
Mbajjwe Arnold - avatar
0
Mbajjwe Arnold Besides Orin Cook answer, there's also a typo in line 13 of HTML section: <div."nav-links">
12th May 2023, 3:15 AM
Emerson Prado
Emerson Prado - avatar
0
It needs to add css to html with the link tag in html head tag . Like as -; link tag with href=style.css
12th May 2023, 5:55 PM
Divyanshu Negi
Divyanshu Negi - avatar
0
I have this link in my html
12th May 2023, 6:03 PM
Mbajjwe Arnold
Mbajjwe Arnold - avatar