![cover-img](https://project-assets.showwcase.com/1420x/56534/1669468202777-Untitled.png?type=webp)
How to create a Navigation Bar?
26 November, 2022
0
0
0
Contributors
You want to create a navigation bar for your website. All you need to do is, follow this tutorial. To create a navbar you only need to do two simple steps.
•
Creating HTML layout
•
Designing the layout
We know that the basic layout of any webpage is designed using HTML. So, At first, what we will do is we will create an HTML layout.
Creating HTML layout
There are multiple ways to create a navbar layout. You can use <nav>,<div>, <ul> etc. Any element of your choice. In this tutorial, We will be using nav and also you should.
Why you should use <nav>?
All the elements in a webpage describe the kind of content present inside them. Which help the search engine or browser render the information on the webpage correctly and show relevant information to the user.
HTML LAYOUT CODE
Till this step, our navbar looks like this
![img](https://project-assets.showwcase.com/1065x/56534/1669396161871-Navbar.jpg?type=webp)
But this is not what you or any user want. We need to design this to give it a good look.
Designing the layout
For designing, You can look at multiple navbars, take inspiration from them and design your own or just simply use the code given below.
CSS CODE
after using this code your navbar will look like this.
![img](https://project-assets.showwcase.com/1050x100/56534/1669398287832-Navbar2.jpg?type=webp)
So, This is how you can make stunning navbars. How difficult is it? Now you know that.
design
web
ux
frontend
ui
develevate