Q1. What are block-level elements in HTML?
Block-level elements start on a new line and take up the full width available. Examples: <div>, <p>, <h1>-<h6>, <ul>, <ol>.
Q2. What are the characteristics of block elements?
They create line breaks before and after, can contain inline and other block elements, respect width and height properties.
Q3. Is <div> a block-level element?
Yes, <div> is the most common block-level container used for grouping elements.
Q4. Can block elements be nested inside inline elements?
No, block elements should not be placed inside inline elements. This causes invalid HTML and layout issues.
Q5. How can you change a block element to inline?
Use CSS display property: display: inline; changes block behavior to inline.
