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.

1How 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>?easy
Answer: Use p for standalone paragraphs of text, not for spacing layout.
3<strong> vs <b>?medium
Answer: strong adds semantic importance; b is stylistic bold without extra meaning.
4<em> vs <i>?medium
Answer: em indicates emphasis in meaning; i is presentational/alternate voice text.
5<br> and <hr> use cases?easy
Answer: Use br for line breaks in text contexts; hr for thematic breaks between sections.
6When should you use <blockquote>?easy
Answer: For extended quotations from external sources.
7<pre> and <code> purpose?medium
Answer: 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