Recently my manager at work criticised my use of the HTML <strong>
tag as I had used it to bold some text. He stated that if I was trying to achieve aesthetic appearance and apply some visual emphasis to to my web page I should be using a CSS class in place of the <strong>
tag such as this class:
.heavytext {
font-weight: bold;
}
Here is the text on the web page using the <strong>
tag.
<li>The hirer agrees <strong>Any damaged occuring is...</strong></li>
Here is the text on the web page using the the CSS class inside a <span>
element.
<li>The hirer agrees <span class="heavytext">Any damaged occuring is...</span></li>
My question is what is better practice. In this case I believe that the text should be emphasised for the screenreader using the <strong>
tag and as this is not for visual effect. The text is part of some terms and conditions and reads "Any damage caused due to misuse of equipment is the responsibility of the customer and will be charged for the damage".