Open In App

Foundation CSS Base Typography Unordered Lists

Last Updated : 22 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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.

Base Typography: Headings, paragraphs, lists, and other inline components are defined by typography in Foundation, which creates appealing and easy default styles for elements.

An Unordered list is a grouping of objects with no particular order, ie., where the order of the items doesn’t matter. The <ul> tag is used to construct this list. A bullet is placed next to each item in the list.

Syntax:

<ul>
    <li>Content</li>
    <li>Content</li>
        <ul>
            <li>Content</li>
            <li>Content</li>
        </ul>
    ...
</ul>

Example 1: This example describes the Base Typography Unordered Lists in Foundation CSS.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <meta charset="utf-8" />
    <title>Foundation CSS base typography unordered lists</title>
    <meta name="viewport" 
          content="width=device-width, 
                   initial-scale=1" />
    <link rel="stylesheet" href=
          crossorigin="anonymous" />
</head>
  
<body>
    <h2 style="color: green">
        <center>GeeksforGeeks</center>
    </h2>
    <h4>Foundation CSS Base Typography Unordered Lists</h4>
    <ul style=" list-style-type: upper-roman;">
        <li style="color: green" class="subheader">
            Web technologies used in web development: 
        </li>
        <ul>
            <li>HTML</li>
            <li>CSS</li>
            <li>JAVASCRIPT</li>
            <li>PHP</li>
            <li>BOOTSTRAP</li>
        </ul>
    </ul>
</body>
</html>


Output:

Example 2: This example describes the Base Typography nested unordered lists in Foundation CSS.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <meta charset="utf-8" />
    <title>Foundation CSS base typography unordered lists</title>
    <meta name="viewport" 
          content="width=device-width, 
                   initial-scale=1" />
    <link rel="stylesheet" href=
          crossorigin="anonymous" />
</head>
  
<body>
    <h1 style="color: green">
        <center>GeeksforGeeks</center>
    </h1>
    <h3>Foundation CSS Base Typography Unordered Lists</h3>
    <ul>
        <li style="color: green" class="subheader">
            Web technologies used in web development: 
        </li>
        <ul>
            <li>item1</li>
                <ul>
                    <li>item 1(a)</li>
                    <li>item 1(b)</li>
                    <li>item 1(c)</li>
                    <li>item 1(d)</li>
                </ul>
            <li>item2</li>
            <li>item3</li>
                <ul>
                    <li>item 3(a)</li>
                    <li>item 3(b)</li>
                    <li>item 3(c)</li>
                </ul>
        </ul>
    </ul>
</body>
</html>


Output:

Reference: https://get.foundation/sites/docs/typography-base.html#unordered-lists



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads