What does font mean in html5

青灯夜游
Release: 2021-12-22 15:08:40
Original
8414 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:
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