No bold short text

I read that font weight is an optional value in the Short-Hand Font Property . However, if I do not, he will do everything font-weight: normal, including the strongtitle elements. Can someone clarify this for me.

* {
  font: 100%/1.3 serif;
}
<h1>Heading one</h1>
<p>First paragraph.</p>
<p>Another paragraph, with <b>bold</b> and <strong>strong</strong>.</p>
Run codeHide result
+4
source share
1 answer

The abbreviated font requires font-sizeand font-family. Everything else is optional. However, omitted values ​​will be set to their initial values, which in most cases are "normal", as opposed to "bold". This applies to headers, as well as vibrant and vibrant tags.

+1
source

Source: https://habr.com/ru/post/1692859/


All Articles