Home >Web Front-end >HTML Tutorial >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:
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!