HTML Strong Text Generator
WM-62Put **double asterisks** around the words that matter and get HTML with the strong element, or b if you prefer.
Runs in your browser. Nothing is uploaded.
Text; wrap important parts in **double asterisks**. Optional lines: class:, id:, title:
HTML
How to use it
- Type your text and wrap important words in **double asterisks**.
- Optionally add class:, id: or title: lines.
- Choose strong or b, and whether blocks get a p element.
- Copy the HTML into your page.
strong, b and what bold means
The strong element marks text of strong importance, seriousness or urgency, such as a warning. The b element draws attention to text without saying it is more important, for example a product name in a review or the key words in a summary. Both are bold by default, but the difference is meaning: pick strong for importance and b for attention. If you only want a bold look, use CSS font-weight on a span instead. For stress emphasis in speech, the em element is the right one.
How the markers work
Wrap the important words in **double asterisks** and only those words become the element. If the text has no markers, each line is wrapped whole. Markers stay on one line and do not nest, and a lone asterisk is left as it is. The remaining text is escaped, so tags typed in show as text. Blank lines split the input into p elements, and the optional class, id and title lines are copied to every generated element.
What it does not do
The tool does not apply a font or decide where emphasis belongs. Browsers set the weight with their default style sheet, and your CSS can change it. Screen readers usually do not announce strong by default, so a warning should also say it in words, such as Warning:. Nesting strong raises the importance level, which the tool cannot express; add nested tags by hand if you need them.
Questions people ask
What is the difference between strong and b in HTML?
strong marks importance, seriousness or urgency. b only draws attention without extra importance. Browsers show both as bold. Choose by meaning: a warning is strong, a product name in a review is b. Neither is a styling tool.
Should I use strong or CSS font-weight?
Use strong when the words really matter. Use CSS font-weight when you only want the look, since it adds no meaning. A span with a bold class has no meaning for assistive tools, which is fine for decoration such as a table heading look.
Does strong change how screen readers read text?
Usually not by default. If the importance matters, make it clear in the wording as well. Some screen readers can be set to announce it, but few users have that on. Write warnings with words, not only weight.
How do I make part of a sentence bold in HTML?
Wrap just that part: This is <strong>important</strong> text. In this tool write **important** and the rest of the line stays plain. Markers must sit tight against the words, so ** important ** with inner spaces is not treated as a marker.
What about em?
em marks stress emphasis, the word you would lean on when speaking. It shows as italic by default. This tool builds strong and b only.
About this tool
Wrapping part of a line in **double asterisks** turns it into a strong element, or a b element if you choose that. With no markers, every line is wrapped whole. strong means the content has strong importance, seriousness or urgency; b only draws attention without adding importance. Both look bold by default, and you can change that in CSS. Blocks separated by blank lines become p elements. Markers do not nest or cross lines. Everything else is escaped, so tags you type are shown as text.