Date First Published: 5th December 2022
Topic: Web Design & Development
Subtopic: Web Development
Article Type: Computer Terms & Definitions
Difficulty: MediumDifficulty Level: 4/10
Learn more about what the HTML <b> tag is in this article.
The HTML <b> tag is found within the <body> tag and is used to make text bold without adding any extra importance to it. Text within the opening and closing tags is made more obvious for the user and may be used to put emphasis on information that the website owner does not want users to miss. It is useful for making certain text stand out, such as the definition of a word or phrase.
According to the HTML5 specification, the <b> tag should only be used as a last resort when no other tag is more suitable. The specification states that emphasised text should use the <em> tag, important text should use the <strong> tag, and marked/highlighted text should use the <mark> tag.
Do not use the <b> tag tag for titles and headings. Instead use the <h1> to <h6> tags to create headings.
Below is an example of the <b> tag. The appearance of it can be adjusted in CSS and it has the following default values:
Output:
By default, text within this tag displays in bold.
The main difference between the <strong> tag and <b> tag is that the <b> tag is used to draw attention to text and the <strong> tag is used to indicate that the text is an important word or section of the document and semantically highlight it. The difference between these two tags is unobvious at first as both are shown in bold. However, according to the W3C, a bold tag must always be displayed in bold and this is optional for a strong tag. Text within the strong tags does not have to be displayed in bold.
If so, it is important that you tell me as soon as possible on this page.
Network Services Network Setups Network Standards Network Hardware Network Identifiers Network Software Internet Protocols Internet Organisations Data Transmission Technologies Web Development Web Design Web Advertising Web Applications Web Organisations Web Technologies Web Services SEO Threats To Systems, Data & Information Security Mechanisms & Technologies Computer Hardware Computer Software Ethics & Sustainability Legislation & User Data Protection