HTML font font

Tag    <font> document content </ font>

The role of   formatted text

1, only the control font set (Helvetica, Arial), size and color

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>font</title>
   
</head>
<body>
    <!---size-->
    <font > 哈哈haha</font>
    <!---字体集->face-->
    <font face="Helvetica"> 你好nihao</font>
</body>
</html>

Hello able to see out the back of the font is set too

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>font</title>
   
</head>
<body>
    <!---size-->
    <font size="3"> 哈哈haha</font>
    <!---字体集->face-->
    <font face="Helvetica"> 你好nihao</font>
    <!---color-->
    <font color = "red"> 彩色的html</font>
    <!---color16进制表示-->
    <font color = "#d8d8d8"> 彩色的html</font>
    <!---color rgb表示-->
    <font color = "rgb(168,168,168)"> 彩色的html</font>
</body>
</html>

 

font in HTML try not to use - -

Guess you like

Origin blog.csdn.net/qq_40354578/article/details/93486324