How to use b to bold font in html

藏色散人
Release: 2023-01-03 09:31:26
Original
3657 people have browsed it

How to use b to bold font: First create an HTML sample file; then create the

tag content in the body; then use the tag to bold a piece of text; finally run the Just check the file for effect.

How to use b to bold font in html

The operating environment of this article: Windows 7 system, HTML5 version, DELL G3 computer

Tags specify bold text.

Differences between HTML 4.01 and HTML5

None.

Tips and Notes

Note: According to the HTML5 specification, the tag should be used as a last resort when no other suitable tag is more suitable. HTML5 specification states:

-
should be used to represent titles, tags should be used to represent emphasized text, tags should be used to represent important text, and tags should be used to represent annotated/highlighted text.

Tip: You can also use the CSS "font-weight" property to set bold text.


Example

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>PHP中文网</title>
</head>
<body>
<p>这是普通文本 - <b>这是粗体文本</b>。</p>
</body>
</html>
Copy after login

Effect:

How to use b to bold font in html

Recommended study:《 HTML video tutorial

The above is the detailed content of How to use b to bold font in html. 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