The &#039; tag'<b>’&#039; in HTML

What is a tag <b>?

Marker <b> in HTML (Hypertext Markup Language) is used to make text bold. Its main purpose is to highlight certain parts of the text that may be important or to which we want to draw the reader's attention. Using this tag causes the text between the opening <b> and closing </b> will be displayed in bold.

Marker Application <b>

Marker <b> is often used to emphasize the importance of certain words or phrases in a context that does not require semantic meaning. That is, although the text is visually highlighted, it does not convey additional meaning of importance that would be interpreted by screen readers or other accessibility technologies.

Semantic alternatives

Marker <strong>

For texts that are not only visually appealing but also have a greater semantic meaning, it is recommended to use the tag <strong>. Tag <strong> not only bolds the text, but also tells screen readers that the text has more importance, which can affect how information is communicated to people using these technologies.

Example of use <b> i <strong>

<code><p>It is important to pay attention to <b>deadlines</b> deliveries.</p>
<p>We recommend caution when handling <strong>hazardous materials</strong>.</p>

In the first case we use <b>, to highlight a word in a graphic context, without giving it additional meaning. In the second example, we use <strong>, to indicate that the information is not only visually important, but is of crucial importance.

Conclusions

Although the marker <b> It's easy to use and effective at highlighting text on a website, but it's important to use it responsibly. Accessibility should be considered and HTML tools should be chosen appropriately to ensure that information is conveyed clearly and understandably to all users. In cases where the emphasis is also of crucial semantic importance, it's better to use <strong>.

Get a free quote

Selected definitions: