" or "" tag to wrap the paragraph text; 2. Set "font-weight:bold|bolder;" to the paragraph tag (for example, p). Just style it, and the font-weight attribute sets the thickness of the text."> How to bold a paragraph in html-HTML Tutorial-php.cn

How to bold a paragraph in html

青灯夜游
Release: 2023-02-06 19:28:29
Original
4579 people have browsed it

How to bold a paragraph in HTML: 1. Use the "" or "" tag to wrap the paragraph text; 2. Set "font" for the paragraph tag (for example, p) -weight:bold|bolder;" style, the font-weight attribute sets the thickness of the text.

How to bold a paragraph in html

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

htmlParagraph bold

1. Useortags

tag defines bold text.

A tag is a phrase tag that defines important text for a sample of a computer program.

    

段落文字加粗

段落文字强调,加粗

Copy after login

Rendering:

How to bold a paragraph in html

2. Use the font-weight attribute

font-weight Property sets the thickness of the text.

Attribute value:

  • bold Defines bold characters.

  • #bolder Defines bolder characters.

Example:

     

测试文本段落。

测试文本段落。

测试文本段落。

Copy after login

Rendering:

How to bold a paragraph in html

[Recommended tutorial:html video tutorialcss video tutorial

The above is the detailed content of How to bold a paragraph 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
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!