<?xml version="1.0" encoding="utf-8"?>

Font size

Font size Bad Practice
Font size Best Practice

The standard font size across all browsers is 16px — that will be the size of your body text unless you indicate otherwise.

There are several types of units you can use to set the font size. The easiest is pixels, or px. To change the font size, add a style attribute to the text tag, use the property font-size, and enter the size you want your text to be in pixels — for example, 40px.

Improve your UX & Product skills with interactive courses that actually work