Home > Web Front-end > Front-end Q&A > How to make font larger with css

How to make font larger with css

藏色散人
Release: 2023-01-06 11:15:54
Original
8218 people have browsed it

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.

How to make font larger with css

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:

How to make font larger with css

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:

How to make font larger with css

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!

Related labels:
css
source:php.cn
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