text"; 2. Use the face attribute of the font tag to set the font to regular script, and the syntax is "text"."/> text"; 2. Use the face attribute of the font tag to set the font to regular script, and the syntax is "text".">
Home >Web Front-end >Front-end Q&A >How to set the font to regular script in html5
Method: 1. Use the font tag to wrap the text that needs to be set. The syntax is "text"; 2. Use the face attribute of the font tag to set the font to italic. That's it, the syntax is "text".
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
html5How to set the font to regular script
In html, if you want to set the font to regular script, you can use the font tag and font The face attribute of the label.
Used to specify the font, font size, and font color of text.
The face attribute of the font tag is the font of the text in the font element.
The example is as follows:
<!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>Document</title> </head> <body> <h1><font face="楷体">楷体样式</font></h1> </body> </html>
Output result:
Recommended tutorial: "html video tutorial"
The above is the detailed content of How to set the font to regular script in html5. For more information, please follow other related articles on the PHP Chinese website!