What HTML tag is used to create bold text in a webpage?

Prepare for the CodeHS Advanced HTML and CSS Test. Leverage comprehensive questions with detailed explanations and hints. Ace your exam with tailored practice!

The tag is used to create bold text on a webpage and carries semantic meaning that signifies the importance of the enclosed text. This contrasts with the tag, which simply styles text as bold without conveying any additional significance. While both tags visually display text in a bold format, provides context that can be particularly beneficial for accessibility tools like screen readers, as they announce the text enclosed within as being of greater importance.

In modern HTML practices, using is preferred over because it adheres to semantic HTML principles, improving both SEO and user experience. Therefore, while visually both tags create bold text, is the more appropriate choice for highlighting important content.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy