HTML Interview10 Q&A
HTML Text Content Interview: 10 Essential Q&A
Most asked questions on headings, paragraphs, inline text meaning, and readable text structure.
Quick Navigation
1. Headings | 2. Paragraphs | 3. strong vs b | 4. em vs i | 5. br vs hr | 6. blockquote | 7. pre/code | 8. semantic text tags | 9. readability | 10. best practices1How should heading tags be used?easy
Answer: Use one primary
h1 and maintain logical order (h2, h3...) without skipping levels arbitrarily.2When to use
<p>?easyAnswer: Use
p for standalone paragraphs of text, not for spacing layout.3
<strong> vs <b>?mediumAnswer:
strong adds semantic importance; b is stylistic bold without extra meaning.4
<em> vs <i>?mediumAnswer:
em indicates emphasis in meaning; i is presentational/alternate voice text.5
<br> and <hr> use cases?easyAnswer: Use
br for line breaks in text contexts; hr for thematic breaks between sections.6When should you use
<blockquote>?easyAnswer: For extended quotations from external sources.
7
<pre> and <code> purpose?mediumAnswer:
pre preserves whitespace; code marks code fragments for semantic clarity.8Name useful semantic text tags.easy
Answer:
abbr, mark, cite, time, small, sub, and sup.9How to improve text readability?medium
Answer: Use clear hierarchy, short paragraphs, proper contrast, and meaningful headings.
10Top interview best practice for text content?medium
Answer: Prefer semantic meaning first, then style with CSS.
Text Content Cheat Sheet
- Semantic emphasis:
strong,em - Structure content with heading hierarchy
- Readable text beats decorative markup