Monday 2 October 2023

CSS Navigation Bar

 CSS Navigation Bar

CSS Navigation Bar is a UI element on a web page. It helps visitors navigate between different sections easily. CSS Navigation bar consists of list of links. A navigation bar is mostly displayed on the top of the page in the form of a horizontal list of links.


There are two types of Navigation bars as follows.


  • Horizontal Navigation bar: Horizontal Navigation bars are usually placed at the top of the web page.
  • Vertical Navigation bar: Vertical Navigation bars are usually placed along the sides of the web page.


To add Navigation Bars, we need to create a list with the links to direct different sections on the website. And then we have to add css properties to change the <li> elements.

Code:-

Output:-



Written by:  W.A. Eranga Dewmini

No comments:

Post a Comment

Java Script Learning

 Introduction to JavaScript JavaScript is the programming language used by front-end web developers to instruct the browser to add behaviors...