Ask coding questions

← Back to all posts
Can someone help me with my website?
AzureScripts (166)

Not the best with HTML...
Can someone help me make my "Navigation Bar"? i am trying to make it have a dark gray background and look fancy.

Answered by EthanJustice (29) [earned 5 cycles]
View Answer
EthanJustice (29)

There are a few things wrong and I'll do my best to explain them. The <head> tags are where your site metadata goes, like the <title> element, which is what your browser shows in the top of your tag, links to stylesheets, etc. You had your navigation bar within this tag, instead of in the body, which is where all the visual elements go. Additionally, you weren't linking to your stylesheet, which should go in the <head>. Fix this by adding <link rel="stylesheet" type="text/css" href="style.css" /> tag in your head. I've changed some things around here, using flexbox for the navigation bar and getting rid of default margins. If you need anything else, feel free to ask!