Is using more than one
<strong>
tag actually make the word stronger?
i.e. is
<strong><strong>abc</strong></strong>
stronger than
<strong>abc</strong>
?
I'm asking this because if you view the HTML source of the official website of North Korea, http://www.korea-dpr.com/ you will see it has many strong tags. Is this supposed to be something like an IE hack?
Thanks in advance.
The <strong> HTML element indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.
The text written under <b> tag makes the text bold presentationally to draw attention. The main difference between these two tag is that the strong tag semantically emphasizes on the important word or section of words while the bold tag is just offset text conventionally styled in bold.
But in HTML5 <em> means stressed emphasis and <strong> means strong importance.
Yes, it's fine in the case you posted, because the 'strong' part is not wrapping the whole of the text.
Yes, you can nest strong tags and the more you nest, the stronger it becomes. Although I'd say beyond 2-3 nested is extraneous.
The relative level of importance of a piece of content is given by its number of ancestor strong elements; each strong element increases the importance of its contents.
Source: HTML 5 spec
Some modern user agents will apply font-weight:bolder;
to strong
, though since it's already bold you won't really notice a visual difference. If you want, you can apply a rule such as the % so nested strong elements become larger, as indicated in the other answer.
Some screen readers might dictate the word out more loudly.
Seems like JAWS/Window Eyes screen readers don't indicate importance, according to this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With