Ask coding questions

← Back to all posts
Navigation Bar
JoshuaBrown31 (6)

I need help, or the exact code, for a horizontal nav bar in html.

Comments
hotnewtop
19wintersp (1130)

You can style a navigation bar with CSS:

Put a <nav> element at the top of your HTML, and put links or whatever in it.

This creates a basic horizontal navigation bar.

If this is for school work, please do not simply ask for code. At least try to understand what is given (and be wary of some people copy-pasting from other sites)

tussiez (1693)

This appears to be a school assignment. I understand you need help, but asking for the exact code isn't a good way to learn..

However, this w3schools page will teach you how to make one, and show you the code :)

xxpertHacker (931)

Why does it have to be horizontal? Is this a school assignment or something?

xxpertHacker (931)

@JoshuaBrown31 You should learn to do it yourself, not ask for direct source code...

IntellectualGuy (887)

Here's the HTML code

And here's the CSS