Loading

Quipoin Menu

Learn • Practice • Grow

html / Elements in HTML
interview

Q1. What is an HTML element?
An HTML element consists of a start tag, content, and an end tag. For example: <p>This is content</p> is a complete paragraph element.

Q2. What are block-level and inline elements?
Block-level elements start on a new line and take full width (<div>, <p>). Inline elements don't start new lines and take only necessary width (<span>, <a>).

Q3. Give examples of semantic HTML elements.
Semantic elements clearly describe their meaning: <header>, <nav>, <article>, <section>, <footer>, <aside>.

Q4. What is the difference between <div> and <span>?
<div> is a block-level container used for grouping larger sections. <span> is an inline container used for smaller text portions.

Q5. What are empty elements? Provide examples.
Empty elements have no content and no closing tag. Examples: <br> for line break, <hr> for horizontal rule, <img> for images.