The Wayback Machine - http://web.archive.org/web/20221004185337/https://www.geeksforgeeks.org/foundation-css-basic-menu/
Skip to content
Related Articles

Related Articles

Foundation CSS Basic Menu

View Discussion
Improve Article
Save Article
  • Last Updated : 17 Mar, 2022
View Discussion
Improve Article
Save Article

Introduction:-

Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay, Mozilla, Adobe, and even Disney. The framework is built on Saas-like bootstrap. It is more sophisticated, flexible, and easily customizable. It also comes with CLI, so it’s easy to use it with module bundlers. It offers the Fastclick.js tool for faster rendering on mobile devices.  

Menus are the main tools for visitors to navigate throughout a website. Foundation CSS Basic Menu is horizontal oriented menu. The menu items are created using <ul> and <li> elements.

used Class:

  • menu: This class is used to create a basic menu items. This class is used inside <ul> element.

Syntax:

<ul class="menu">
  <li><a href="#">Item 1</a></li>
  <li><a href="#">Item 2</a></li>
  . . .
</ul>

Example:

HTML




<!DOCTYPE html>
<html lang="en">
 
<head>
    <title>Foundation CSS Basic Menu</title>
 
    <!-- Compressed CSS -->
    <link rel="stylesheet" href=
        crossorigin="anonymous">
 
    <!-- Compressed JavaScript -->
    <script src=
        crossorigin="anonymous"></script>
</head>
 
<body>
    <h1 style="color: green;">
        GeeksforGeeks
    </h1>
 
    <h3>Foundation CSS Basic Menu</h3>
 
    <ul class="menu">
        <li><a href="#">GeeksforGeeks</a></li>
        <li><a href="#">Web Technology</a></li>
        <li><a href="#">Data Structure</a></li>
        <li><a href="#">Programming</a></li>
        <li><a href="#">Algorithm</a></li>
    </ul>
</body>
 
</html>

Output:

Foundation CSS Basic Menu

Foundation CSS Basic Menu

Reference: https://get.foundation/sites/docs/menu.html#basic-menu


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!