Open In App

Foundation CSS Base Typography

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.

The Base Typography facilitates the clean, attractive typographic style to all the basic elements, which helps to create appealing and easy default styles for the elements. The Base Typography includes several components, which are described below:



Example 1: In this example, we have used the <abbr> tag and the <blockquote> tags to create denote abbreviations and blockquotes. We also have used the sub-header segment to denote the Foundation CSS version.




<!DOCTYPE html>
<html lang="en">
  
<head>
    <meta charset="UTF-8">
    <meta name="viewport" 
          content="width=device-width,
                   initial-scale=1.0">
    <link rel="stylesheet" href=
         crossorigin="anonymous">
    <title>
        Foundation CSS Base Typography
    </title>
</head>
  
<body>
    <h2 style="color: green;">GeeksforGeeks</h2>
    <h4>Foundation CSS Base Typography</h4>
    <h5>Version 
        <small>V6.74</small>
    </h5>
    <blockquote>
        "Don't dream for anything, rather aim of something. 
            <cite>Anonymous</cite>
    </blockquote>
    <p>
       Do you know the full Form of GFG? 
       If not, hover your pointer here 
       <abbr title="GeeksforGeeks">GFG</abbr>
    </p>
</body>
</html>

Output:



Foundation CSS Base Typography

Example 2: In this example, we created the ordered, unordered, and definition list in Foundation CSS, along with creating a paragraph with keystrokes in it.




<!DOCTYPE html>
<html lang="en">
  
<head>
    <meta charset="UTF-8">
    <meta name="viewport" 
          content="width=device-width,
                   initial-scale=1.0">
    <link rel="stylesheet" href=
         crossorigin="anonymous">
    <title>
        Foundation CSS Base Typography
    </title>
</head>
  
<body>
    <h2 style="color: green;">GeeksforGeeks</h2>
    <h4>Foundation CSS Base Typography</h4>
    <h5>Version <small>V6.74</small></h5>
    <br>
    <h5>Types of programming languages:</h5>
    <ul>
        <li>Java</li>
        <li>C++</li>
        <li>C</li>
        <li>Python</li>
    </ul>
    <h5>
        Different component of MERN Stack:
    </h5>
    <ol>
        <li>MongoDB</li>
        <li>Express JS</li>
        <li>React JS</li>
        <li>Node js</li>
    </ol>
    <hr>
    <p>
        The shortcut for copying a text is 
        <kbd>Ctrl + C</kbd> and 
        the shortcut for paste is 
        <kbd>Ctrl + V</kbd>
    </p>
</body>
</html>

Output:

 

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


Article Tags :