Home >Web Front-end >HTML Tutorial >CSS text style_html/css_WEB-ITnose
font-family: Usually the text of the article uses the highly readable serif font, which makes users less likely to fatigue after reading for a long time. The titles and tables use the more eye-catching sans-serif font. This principle is also recommended in web design and browser settings.
font-size: The unit px represents specific pixels, so its display size is related to the size of the monitor and its resolution. Using "%" or "em" is a ratio relative to the parent tag. If the font size of the parent tag is not set, it is relative to the browser's default value.
Sometimes you want the text to be not only underlined, but also underlined or strikethrough. In this case, you can assign the values of underline and overline to text-decoration at the same time and separate them with spaces.