how to create a menu in html

<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <style>
            body {
              margin: 0;
              font-family: Arial, Helvetica, sans-serif;
            }

            .topnav {
              overflow: hidden;
              background-color: #333;
            }

            .topnav a {
              float: left;
              color: #f2f2f2;
              text-align: center;
              padding: 14px 16px;
              text-decoration: none;
              font-size: 17px;
            }

            .topnav a:hover {
              background-color: #ddd;
              color: black;
            }

            .topnav a.active {
              background-color: #4CAF50;
              color: white;
            }
        </style>
    </head>
    <body>

        <div class="topnav">
            <a class="active" href="#home">Home</a>
            <a href="#news">News</a>
            <a href="#contact">Contact</a>
            <a href="#about">About</a>
        </div>

        <div style="padding-left:16px">
            <h2>Top Navigation Example</h2>
            <p>Some content..</p>
        </div>

    </body>
</html>

4
6
Joe11 105 points

                                    &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;title&gt;Page title&lt;/title&gt;
    &lt;style&gt;
      #navbar {
        margin: 0;
        padding: 0;
        list-style-type: none;
        width: 100px;
      }
      #navbar li {
        border-left: 10px solid #666;
        border-bottom: 1px solid #666;
      }
      #navbar a {
        background-color: #949494;
        color: #fff;
        padding: 5px;
        text-decoration: none;
        font-weight: bold;
        border-left: 5px solid #33ADFF;
        display: block;
      }
    &lt;/style&gt;
  &lt;/head&gt;
 
  &lt;body&gt;
   
    &lt;ul id=&quot;navbar&quot;&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contacts&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About us&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
 
  &lt;/body&gt;
&lt;/html&gt;&lt;div class=&quot;open_grepper_editor&quot; title=&quot;Edit &amp; Save To Grepper&quot;&gt;&lt;/div&gt;

4 (6 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
menu css html building a menu page css simple html menu example w3schools html menu menu bar for html how to make menu using html and css simple html menus css menu codes menu with # html cool menu bar html how to make menu list in html add menu bar html css menu css create menu items in html how to make menu button in html how to make menu bar in html how to make menu html css menu bar design in html and css menu ANCRE css make a menu html quick tutorial how to create a menu bar in html code for creating menu bar in html w3s menu make menu bar css menu design code in html css how to create menu in html css how create menu bar in w3 school in html menu bar for html in w3schools how to make a menu how to make a menu in an html document how to make menu css menu in w3schools create menu bar in html how to make menu in html menu bar using html how to make a menu bar in html and css how to make an html menu tutorial to create menu in css and html make menu bar in html how to create menubar in html how to create menu bar in html menubar in css and html how to make menu in html css create menu html create menu bar in html css create menu htlm how to create a simple menu bar in html menu bar thml css menu in html code website css menu menu examples html html menu element example how to menu bar html how to put menu in html menubar in html css menu css in html simple menu html css create nav menu in html and css how menu in html how can create menu html css how to do menu in html create menu bar with html menu with menu item with html css menu box in html html css menus with menu list html css menus how to make a menu bar in html html make a menu html how to add a menu bar how to create a menu bar in html and css code menu html html menu bar example simple and cool html and css men&uuml; cool html and css men&uuml; menus in html create css menu html create menus menu bar html code how to make a website menu bar in html css add menu menu bar html css html cs for menu bar menubar html css menu bar in html css simple css menu mak a menu css ans html menu in html and css menu creation html how to make a menu in html how to make menu bar in html and css menu creation in html menu ancre html css simple menu using w3 school how to include a menu bar in HTML make a menu html css how to create a menu for a website in html how to create a menu button in html menu bar w3 w3school how to create menu menu bar in html using css css for menu menu bar in html and css css3 creating a menu how to make a menu bar html and css how to create a menu using html Menu html e css how to make a menu css html css menu bar menu bar w3schools w3schools menu bar create custom menu css and html menu in html css menubar in css html menu w3schools html example menu bar css for menubar different menu design html css css make menu ways you can style a menu bar in css css3 menu css3 menu bar examples css3 menu bar examples css menu bar with div css3 menu bar create menu w3schools html css menu create a menu bar in html css css menus making a menu in html make menu bar html build website menu html css menue bar css code w3schools menu html how to design menu bar in html simple menu list html how make html menu reference menu w3school example css menubar put menu bar in html menu in css how to create a menu css making menu bar in html css html menu menu bar using html and css w3schools menu menu css and html how to make menues in html css menu bar add a menu bar in html menu w3schools how to create a menu create menu component html and css how to put menu bar in html menu bar in html how to make a menu bar how to create a menu html how to w3schools menu css menu simple menu css html make a menu bar menu html css how to create a menu with html and css how to add a menu bar in html how to make a menu html how to create a menu bar in html simple html page with menu menu bar on html making a menu bar in html what is menu in html what is menu bar in html html men&uuml; how to make menu how to create menu css html menu code example create menus with html menu in html create a menu in css how to add menu bar in html create menu in html how to create menu in html how to make menu in html with button how to add menu bar in html using css html menu how to create a menu in html
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source