Q1. What does float property do?
float pushes element to left or right, allowing text and inline elements to wrap around it.
Q2. What are float values?
left, right, none (default).
Q3. What is the clear property?
clear specifies which sides of an element cannot be adjacent to floated elements. Values: left, right, both, none.
Q4. What is the clearfix hack?
clearfix prevents container collapse when all children are floated. It uses ::after pseudo-element with clear: both.
Q5. Is float still commonly used?
Modern layouts prefer flexbox and grid, but float is still used for text wrapping around images.
