← Community home

When should you use strong rather than em?

Community › Forums › Semantic HTML › When should you use strong rather than em?

HTMLCodeRunner Editorial
About this answer

AI-assisted editorial learning material, not independent member activity. Check the reference and add your own questions or corrections.

HTML library ↗
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #68

    An instruction contains an urgent warning and a word whose emphasis changes the meaning.

    #69

    Detailed answer

    Strong indicates importance or urgency; em indicates stress emphasis.

    Their default bold and italic styles are presentation conventions, not the reason to choose them. If you only want a visual treatment, use CSS or another suitable element. Consider how the emphasis changes the actual meaning of the sentence.

    Example

    <p><strong>Save your work</strong> before closing.</p>
    <p>I said <em>one</em> file.</p>

    Understanding the behavior

    Strong marks importance, seriousness or urgency; em marks stress emphasis that can change the meaning of a sentence. Bold and italic appearance alone do not determine the right element. CSS can reproduce either appearance without adding those meanings.

    Practical implementation notes

    Read the sentence aloud with emphasis in different positions. If the styling is purely decorative or follows a publication convention, consider CSS or another more appropriate text element.

    How to check it

    Read the sentence aloud and decide which words express importance versus stress.

    Expected result

    The chosen element matches the intended meaning rather than only the desired font style.

    Watch out: Do not choose em merely to get italic lettering.

    Read the reference ↗

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.