How to set the font to regular script in html5

WBOY
Release: 2021-12-17 11:36:38
Original
8071 people have browsed it

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".

How to set the font to regular script in html5

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>
Copy after login

Output result:

How to set the font to regular script in html5

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!