Skip to content
Related Articles

Related Articles

Foundation CSS Base Typography

View Discussion
Improve Article
Save Article
  • Difficulty Level : Hard
  • Last Updated : 25 Mar, 2022
View Discussion
Improve Article
Save Article

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:

  • Paragraph: The Paragraph is preset with particular font size and line-height and spacing that matches with the overall vertical styling.
  • Header: The Header is used to add header styles on all header elements. This can be given with the specific font size and style and is arranged according to their values.
  • Links: The Links are used to add connections from one Web resource to another. These are specified with standard styles, along with the standard primary color, by default.
  • Dividers: The Dividers are used to add the breaks between the elements, ie, specifying the thematic breaks between two paragraphs or sections.
  • Unordered List: The 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.
  • Ordered List: The ordered list is a collection of objects in which the order of the contents is important. A number list is another name for an ordered list. In the numbering method, we can use Arabic numbers, roman numerals, or letters to determine the order. The ordered list tag or <ol> is used to make an ordered list.
  • Definition List: The Definition List can be used to display value-pair. It provides the definitions to particular terms that we have defined in our lists.
  • Blockquotes: The Blockquote is used to display the long quotations (a section that is quoted from another source). It changes the alignment to make it unique from others.
  • Abbreviation: It is used to define the abbreviation or short form of an element. The abbreviation is used to provide useful information to the browsers, translation systems, and search engines.
  • Code: It is used to format the references to the code using the <code> tag.
  • Keystrokes: The Keystrokes can be used to define the keyboard input & the text enclosed within the <kbd> tag is typically displayed in the browser’s default monospace font.
  • Accessibility: It can be used to facilitate the various components to work efficiently on the page, by making it accessible to the required components.
  • Print Styles: It is used to provide some basic print-specific styles.

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.

HTML




<!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.

HTML




<!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


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!