


How to set the font size of html font tag? Introduction to the usage of html font tag attribute
This article mainly introduces how to set the font size of the HTML font tag. This is actually similar to css, but the attributes of the other two font tags cannot be used and are replaced by css, but What we should introduce here, lest anyone forget, is to introduce the three attributes of the HTML font tag. Let’s take a look at this article
First of all, let’s take a look at how the html font tag sets the font size:
Only to html The font tag is a tag specially used to set fonts. Although it is rarely used in HTML5 (because CSS styles are used to set the attributes in the font tag), I personally feel that the font tag is still a very powerful tag. Yes, why do you say that? You will know after reading it.
Let us look at a code example first:
<body> <p>这里是<font size="50">PHP中文网</font>,欢迎大家来到PHP中文网,这里有很全面的编程课程</p> </body>
In order to display it more clearly, we have now made such a large character so that everyone can see it more clearly. . The effect displayed in the browser is as follows:
As you can see, I changed the font in the font tag to be so large, it should be very clear and intuitive.
Now we have explained the first question, changing the font size. (Want to see more courses on HTML programming, welcome to the PHP Chinese website)
Now let’s take a look at the usage of the html font tag attribute :
Just introduced an attribute of the html font tag that can change the font size.
Now let’s introduce the attributes of two HTML font tags
- ##The font face attribute is an attribute that can define fonts;
- The font color attribute is an attribute that can define the font color
Let’s talk about the font face attribute first. Any font style you have on your computer can be used to display it.
For example, let’s take a look at the code example:<body> <p>这里是<font size="50">PHP中文网</font>,欢迎大家来到<font face:"黑体">PHP中文网</font>,这里有很全面的编程课程</p> </body>
Now let’s talk about the second font color attribute, an attribute that defines the font color. As per the old rules, let’s look at the code examples:
<body> <p>这里是<font size="50">PHP中文网</font>,欢迎大家来到<font face="黑体">PHP中文网</font>,这里有很全面的<font color="red">编程课程</font></p> </body>
html5 How to use the loop attribute of the embed tag? Summary of attributes of embed tag!
#How does the html5draggable attribute achieve the page dragging effect? The method is summarized here!
The above is the detailed content of How to set the font size of html font tag? Introduction to the usage of html font tag attribute. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.
