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