ACCESSIBLE CSS: Strong vs Font-Weight – Which to Use?

Decorative Floral Print

Use semantic markup like STRONG instead of using the CSS font-weight property.

EXAMPLE CODE:

<span style="font-weight:bold;">Sample Heading Text</span>

REMEDIATION:

Use the STRONG element instead of the SPAN element for bold text.

<strong>Sample Heading Text</strong>