Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

CSS: “font-stretch”: “bold” is not a “font-stretch” value.

The font-stretch property in CSS defines the relative width of the font, and is used to make the text narrower or wider. The value bold is not a valid value for font-stretch. Instead, you should use the font-weight property to set the boldness of the font.

Here’s an example of how to use the font-weight property to set the text to bold:

<p style="font-weight: bold;">This text is bold.</p>

Alternatively, you can use a CSS stylesheet to apply the font-weight property to multiple elements:

  p { font-weight: bold; }
  h1 { font-weight: bolder; }

<p>This text is bold.</p>
<h1>This heading is even bolder.</h1>

Learn more:

Related W3C validator issues