Ask coding questions

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

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.

https://repl.it/@AzureScripts/Website

Answered by EthanJustice (68) [earned 5 cycles]
View Answer
Commentshotnewtop
1
EthanJustice (68)

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!