html-css Interview Questions

Beginner Level3 questions
The foundation of layout: Content + Padding + Border + Margin.
Block elements take full width; Inline elements take only needed width.
Using tags that describe the meaning of the content (e.g., <header>, <nav>).
Intermediate Level3 questions
One-dimensional layout system for rows or columns.
display: none removes space; visibility: hidden keeps space.
Pseudo-class = state (:hover); Pseudo-element = part (::before).
Advanced Level3 questions
Hierarchy of selector priority (Inline > ID > Class > Element).
Dynamic reusable values in CSS (e.g., --main-color).
Naming convention for maintainable CSS (Block__Element--Modifier).