Format Code Now
/
Web & markupHTML Emphasize Text Generator Next: HTML iFrame Generator ›

HTML Emphasize Text Generator

WM-32

Type the words and pick em, strong, b or i. The four elements look alike on screen, but each has a different meaning, so the labels say what each is for.

Runs in your browser. Nothing is uploaded.

Text to emphasize (optional lines: lang:, id:, class:, title:)

HTML

How to use it

  1. Type or paste the text to mark up.
  2. Pick em for stress, strong for importance, b for attention or i for an alternate voice.
  3. Add lang:, class: or title: lines if you need them.
  4. Copy the element.

Meaning, not looks

em marks stress emphasis, the word you would lean on when speaking: I did not say that, versus I did not say that. strong marks strong importance, seriousness or urgency, such as a warning. b draws the eye to a keyword without saying it is more important, and i marks text in a different voice or mood, such as a ship name or a thought. Browsers draw em and i in italics, and strong and b in bold, but all four can be restyled with CSS.

Nesting and length

The stress of em can be nested to mean stronger stress, and strong can be nested too, but this tool writes one element around everything you type. If the text has line breaks they are kept, so the element will span lines. For making only a few words bold in the middle of a sentence, wrap just those words and paste the result into your text.

Error messages and what to do

MessageWhat it meansFix
Type the text for the element above the key: value lines.There was no text to wrap.Type the text to mark up.

Questions people ask

What is the difference between em and i in HTML?

em marks stress, which can change the meaning of a sentence. i marks text set apart in voice or mood, such as a technical term or a foreign phrase. Both are italic in most browsers by default.

What is the difference between strong and b?

strong says the text is important, serious or urgent. b only draws attention, as with a product name or keyword in a summary, without claiming importance. Both show as bold by default.

Should I use bold tags for SEO?

Pick the element that matches the meaning for your readers. There is no evidence in this tool or its output that either one changes ranking, so do not add them just for search engines.

How do I make text bold in HTML?

If the text is important, wrap it in strong. If it only needs to stand out, use b. If it is purely visual, such as a heading style, use CSS font-weight instead of an element.

Does em have to be italic?

No. Italic is the browser default, but CSS can change it. The element keeps its meaning of stress even if you restyle it. Style it with font-style in CSS, and the markup still tells readers and software that the words carry stress.

About this tool

Wraps all of the text in the element you pick, and escapes < and & so the text stays text. The four elements differ in meaning, not only in how they look: em marks stress emphasis, strong marks importance, b draws attention without saying it is more important, and i marks text in an alternate voice or mood such as a term or a thought. Browsers show em and i in italics and strong and b in bold by default, but you can restyle all four. Line breaks inside the text are kept as typed, so the element can span lines. Optional lines: id:, class:, title:, lang:, data-* and aria-*.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.