Home >Web Front-end >HTML Tutorial >How to set the page text font size in html

How to set the page text font size in html

王林
王林forward
2020-02-22 18:01:386109browse

How to set the page text font size in html

Use font-size to set the font size

The font-size attribute is to set the font size of the text. Since the font-size attribute value is relatively single, font-size is not used. The attribute description table explains that the font-size attribute value is in px.

(Recommended learning: html tutorial)

Let us enter the practice of the font-size attribute. The practical content is such as: setting the font size of the p tag text in the HTML page is 14 pixels.

The code is as shown:

How to set the page text font size in html

For more programming-related content, please pay attention to the Programming Introduction column on the php Chinese website!

The above is the detailed content of How to set the page text font size in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete