Home > Article > Web Front-end > How to make font larger with css
How to make the font larger in css: 1. Use the size attribute in the font tag in hml to set the font; 2. Use font-size in the css style to set the font size.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
There are two ways to make the font size of the content of the HTML page larger:
1. Use the size attribute in the font tag in hml to set the font.
2. Use font-size in css style to set the font size.
Method 1: Use the size attribute in html
1. Use a size attribute to change the font size:
This is some text!
2. The running results are as follows:
Method 2: Use css font-size in to set the font size
1. The code to set the font size using this attribute is as follows:
This is some text!
2. The running result is as follows:
Recommended learning: "css video tutorial》
The above is the detailed content of How to make font larger with css. For more information, please follow other related articles on the PHP Chinese website!