❮ Back to home page

❀ Summary 5 ❀


Fonts


Fonts used in web pages can come from three different sources. They can be installed on the device, they can be linked from a third party site like google, or they can be served to the users browser along with the page. There are six properties that relate to styling a font. They are font family, font size, font style, font weight, and font variant.


Font Family Property


The font family determines the font in which an element is displayed. Typically, you set a primary font for the entire page, and then add font family styles to elements that you want to look different and stand out. Fonts are always specified in lists called font stacks.


Font Size Property


Every HTML text element has a default font size set by the browser style sheet. When changing a font size, you are changing the size from that default. There are two types of units that can be used to adjust font size. These are either absolute units like pixels or points or relative units like percentages and ems