Date First Published: 6th October 2022
Topic: Web Design & Development
Subtopic: Web Design
Article Type: Computer Terms & Definitions
Difficulty: MediumDifficulty Level: 5/10
Learn more about what a font family is in this article.
A font family is a CSS property that specifies the font for an element. It determines the font face used to render characters in a HTML document. The font family is also available in the deprecated <font> </font> element. The list of fonts is separated with commas in both HTML and CSS and to avoid unexpected results, the last font family should always be a generic family. Web browsers will use their default fonts if the font cannot be found and no generic family is specified.
There are two types of font families, which include:
In the example below, the font family for paragraphs is specified in CSS. It can be added to an external stylesheet or within the head of the HTML document:
In the second example, the font-family is only applied to that specific element, which is known as an inline style:
The output of the text can be seen below:
Example text formatted with inline CSS.
If so, it is important that you tell me as soon as possible on this page.
Network Services Network Setups Network Standards Network Hardware Network Identifiers Network Software Internet Protocols Internet Organisations Data Transmission Technologies Web Development Web Design Web Advertising Web Applications Web Organisations Web Technologies Web Services SEO Threats To Systems, Data & Information Security Mechanisms & Technologies Computer Hardware Computer Software Ethics & Sustainability Legislation & User Data Protection