Home > Web Front-end > Front-end Q&A > What does font mean in html5

What does font mean in html5

青灯夜游
Release: 2021-12-22 15:08:40
Original
8476 people have browsed it

In HTML5, font means "font" and is a font tag element that can specify the font, font size, and font color of the text; the syntax "text".

What does font mean in html5

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

In HTML5, font means "font".

What does font mean in html5

Specifies the font, font size, and font color of the text.

Attribute Value Description
color
  • rgb(x,x,x)
  • #xxxxxx
  • colorname

Deprecated. Please use style to replace it.

Specifies the color of the text.

face font_family

Deprecated. Please use style to replace it.

Specifies the font of the text.

size number

Deprecated. Please use style to replace it.

Specifies the size of the text.

Example:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
</head>
<body>

<p><font size="3" color="red">这是一些文本!</font></p>

<p><font size="2" color="blue">这是一些文本!</font></p>

<p><font face="verdana" color="green">这是一些文本!</font></p>

</body>
</html>
Copy after login

What does font mean in html5

Related recommendations:《html Video tutorial

The above is the detailed content of What does font mean in html5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template