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

王林
Release: 2020-02-22 18:01:38
forward
6076 people have browsed it

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template