Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the non-bold method in css

Shulou Source: shulou.com Published: 2022-06-02 08:21:01 10月03日 Update

This article introduces the relevant knowledge of "what is the non-bold method in css". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

In css, you can use the font-weight attribute to make the element unbold, written as "element {font-weight:normal;}"; the font-weight attribute is used to set the thickness style of the text, when the value is set to "normal", the element will be set to the standard character style, that is, the non-bold style.

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

How to write without bold in css

In css, you can use the font-weight attribute to style the element without bold, and the font-weight attribute to set the thickness of the text.

Property values are shown in the following figure:

Let's take a look at how to make the element unbold through an example, as follows:

Document p {font-weight: bold} this paragraph does not want to be bold

This is a paragraph

This is a paragraph

Output result:

You don't want one of the paragraphs to be bold at this time, just add the font-weight: normal style to the paragraph:

Document p {font-weight: bold} p.normal {font-weight: normal} this paragraph does not want to be bold

This is a paragraph

This is a paragraph

Output result:

This is the end of the content of "what is the non-bold method in css". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Elements attributes styles output methods content text more knowledge examples weight results practical learned and then that is writing dilemmas characters reality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker Huawei Apple MariaDB