Choosing the Correct HTML Tag for Bold Text
To make text bold in HTML, you must use the correct, standardized element names—HTML does not recognize invented tags like <bold>, <bb>, or <bld>.
A key distinction is:
For your multiple-choice options, the correct bold tag among them is (i) <b>. The other options are not valid HTML elements and will not produce the intended bold formatting in standards-compliant rendering.
In HTML, <b> is the element for “stylistically offset text” (typically rendered bold) without indicating semantic importance.
If you want semantic importance (not just visual boldness), use <strong> instead.
Key terms: [HTML element]{def="A named tag with semantics, e.g., or , defined by the HTML specification"} Void/valid element Semantics Visual styling.
Footnotes
-
MDN Web Docs: The HTML element
<b>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b - Explains that<b>marks text for stylistic offset and is rendered bold. ↩ -
MDN Web Docs: The HTML element
<strong>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong - Explains that<strong>conveys strong importance and is rendered bold by default. ↩
HTML <b> vs <strong> (bold vs strong emphasis)
What each option means (and which is correct)
Why the other tags are wrong: HTML element names are fixed. Unknown tags are not part of the HTML language definition, so they don’t automatically get the browser’s built-in “bold” behavior. (Valid element behavior is defined by the spec and implemented by browsers.)
Footnotes
-
MDN Web Docs: The HTML element
<b>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b - Explains that<b>marks text for stylistic offset and is rendered bold. ↩ ↩2 -
HTML Standard (Living Standard) — https://html.spec.whatwg.org/ - Defines valid elements and HTML language behaviors implemented by browsers. ↩
Pro Tip: Prefer semantic emphasis
If the text is important (not just visually thick), use <strong> rather than <b>; it communicates importance to assistive technologies.
Footnotes
-
MDN Web Docs: The HTML element
<strong>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong - Explains that<strong>conveys strong importance and is rendered bold by default. ↩
Warning: Don’t invent HTML tags
Tags like <bold>, <bb>, and <bld> are not standard HTML elements, so they won’t reliably bold text.
Footnotes
-
HTML Standard (Living Standard) — https://html.spec.whatwg.org/ - Defines valid elements and HTML language behaviors implemented by browsers. ↩
How to choose the correct HTML tag for bold text
- 1Step 1
If you want to convey importance, use keyword
<strong>; if you only need visual boldness, use<b>. 2Footnotes
-
MDN Web Docs: The HTML element
<strong>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong - Explains that<strong>conveys strong importance and is rendered bold by default. ↩ -
MDN Web Docs: The HTML element
<b>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b - Explains that<b>marks text for stylistic offset and is rendered bold. ↩
-
- 2Step 2
Use the standardized tag name exactly:
<b>for stylistic bold; do not invent variants like<bold>,<bb>, or<bld>. 2Footnotes
-
HTML Standard (Living Standard) — https://html.spec.whatwg.org/ - Defines valid elements and HTML language behaviors implemented by browsers. ↩
-
MDN Web Docs: The HTML element
<b>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b - Explains that<b>marks text for stylistic offset and is rendered bold. ↩
-
- 3Step 3
Example:
<b>This is bold</b>. It will render bold in browsers per the element definition.Footnotes
-
MDN Web Docs: The HTML element
<b>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b - Explains that<b>marks text for stylistic offset and is rendered bold. ↩
-
- 4Step 4
If you used an invalid tag, it may not style as expected; validate to catch incorrect element names.
Footnotes
-
HTML Standard (Living Standard) — https://html.spec.whatwg.org/ - Defines valid elements and HTML language behaviors implemented by browsers. ↩
-
From question to correct tag
Interpret the goal
Step AThe task asks for a tag that makes text bold visually."
Match to a valid HTML element
Step BOnly <b> is a standard HTML element for stylistic bold. "
Footnotes
-
MDN Web Docs: The HTML element
<b>— https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b - Explains that<b>marks text for stylistic offset and is rendered bold. ↩
Eliminate invalid options
Step COther tags are not valid HTML elements, so they won’t reliably bold text. "
Footnotes
-
HTML Standard (Living Standard) — https://html.spec.whatwg.org/ - Defines valid elements and HTML language behaviors implemented by browsers. ↩
Common confusions
Knowledge Check
Which option is the correct HTML tag to make text bold?
Explore Related Topics
Group Discussion Skills: Identifying the Correct Option
In group discussions, the behavior that should be avoided is dominating the conversation, while active listening, logical reasoning, and respecting others’ viewpoints are essential for success.
- Dominating the conversation limits balanced participation and weakens group effectiveness.
- Active listening enhances understanding, collaboration, and thoughtful responses.
- Logical arguments make contributions clear, persuasive, and evidence‑based.
- Respecting others’ viewpoints fosters civility, diversity of ideas, and constructive dialogue.
- Effective participants aim to contribute meaningfully rather than control the discussion.
Lexical Analysis Token Counting: `while(count<=10) count = count + 1;`
The course explains how a lexical analyzer tokenizes the C statement while(count<=10) count = count + 1; and why the standard exam answer is 11 tokens.
- Keywords, identifiers, literals, operators, and delimiters each count as one token; whitespace is ignored.
<=is recognized as a single relational‑operator token due to the longest‑match rule.- The full lexical split shows 12 visible symbols, but typical MCQ conventions omit one delimiter, giving 11 tokens.
- Understanding token categories helps avoid common exam traps such as counting delimiters incorrectly.
Which Grammar Type Is the Most Powerful? Understanding Type-0, Type-1, Type-2, and Type-3 Grammars
The most expressive grammar in the Chomsky hierarchy is the unrestricted Type‑0 grammar, which generates all recursively enumerable languages and matches the power of a Turing machine.
- The hierarchy is strict: , so each higher type can generate everything the lower types can, plus more.
- Type‑3 (regular) → finite automaton; Type‑2 (context‑free) → pushdown automaton; Type‑1 (context‑sensitive) → linear‑bounded automaton; Type‑0 (unrestricted) → Turing machine.
- Example languages: is context‑free but not regular; is context‑sensitive but not context‑free.
- “More powerful” refers to expressive capacity (ability to generate a larger class of languages), not ease of parsing or practical use.