💻
HTML/CSS
  • Overview
  • How the Web Works
    • DNS, TCP/IP, HTTP, HTML
    • Anatomy of a Web Page
    • How a Web Page Gets Loaded
  • HTML/CSS intro
    • HTML
      • Boilerplate HTML
      • HTML Hierarchy
      • Meta Section
      • Text-formatting Elements
      • Image
      • Video
      • Anchor
      • Tables
      • Semantic Elements
    • CSS
      • Properties
      • Selectors
      • Box-Model
      • Block vs Inline
      • The Cascade
    • Layout
      • Container Elements
      • Grid vs Flexbox
      • Flexbox
      • Grid
  • Miscellaneous Topics
    • Background Image
    • Border-radius
    • Box-shadow
    • Centering Elements
    • Colors
    • Custom Properties
    • Forms
    • Typography
    • Units
  • Appendix
    • Google Fonts
    • Lorem Ipsum
    • HTML Cheatsheet
    • CSS Cheatsheet
    • Browser Support for HTML/CSS
    • unsplash.com (free images)
    • pexels.com (free images)
    • Chrome Default Stylesheet
  • Further Learning Resources
    • FE Mentor Challenges
    • Free Scrimba Courses
    • Kevin Powell Youtube
Powered by GitBook
On this page
  • What is Typography?
  • Typeface vs Font
  • Serif and Sans Serif
  • Web Safe Fonts
  • Font Stacks
  • Font Embedding Services
  • Resources

Was this helpful?

  1. Miscellaneous Topics

Typography

PreviousFormsNextUnits

Last updated 3 years ago

Was this helpful?

What is Typography?

In essence, typography is the art of arranging letters and text in a way that makes the copy legible, clear, and visually appealing to the reader.

Typeface vs Font

A typeface is a family of related fonts, while fonts refer to the weights, widths, and styles that constitute a typeface.

There are three basic kinds of typeface: serif, sans-serif, and decorative (cursive, fantasy, monospace).

Serif and Sans Serif

The two most commonly used typefaces are Serif and Sans Serif.

Serif - employ little extra ligatures on the letterforms. Those extra pieces are called serifs. Common serif fonts are Georgia and Times New Roman. Serif fonts work great for large text like heading as well as long passages of text and body copy.

Sans-serif - do not have ligatures. The name means without serifs. Popular fonts in this category include Arial or Helvetica. Similar to serifs, sans-serif fonts perform equally well in headings as well as body content, although some experts prefer that large blocks of text avoid sans-serif fonts because they're harder to read at small point sizes.

Web Safe Fonts

In order for a typeface to show on a web page, a visitor must have access to that typeface on their computer. The easiest way to access a typeface is if it's already installed on the computer.

Most people don't ever intentionally install typefaces on their computers. Instead, they simply rely on the typefaces that get installed with the operating system and other software.

After comparing typefaces across different operating systems and common software packages, you are left with a very small subset of typefaces, referred to as web safe fonts. These are typefaces that you can be reasonably sure are installed on all computers.

What happens if we ask for a font that the user doesn't have? The font doesn't display. A different font is used instead (usually chosen by the browser).

Font Stacks

A font stack is a set of fonts that are specified in order of desirability, so that the browser can use the first font available in the list.

Font Embedding Services

Font embedding services host the typefaces on their sites and allow you to link to them. Google host a service that has free fonts and is very popular.

For more information on including Google Fonts in your project see the link below.

Resources

Google Fonts
https://www.w3.org/Style/Examples/007/fonts.en.htmlwww.w3.org
Font Stacks You Can Use for Reliable HTML Fonts on Your Web PagesThoughtCo
Google FontsGoogle Fonts
What Is Typography, And Why Is It Important? [2022 Guide]CareerFoundry
Logo
Sans Serif vs Serif Font: Which Should You Use & When?
Logo
Logo
Logo