1. Explain the float and clear properties with a practical example.
Float is used to move elements like images or boxes to the left or right so that text wraps around them. The clear property is used to stop elements from wrapping around floated items. For example, after floating an image right, applying clear: both to the next section ensures it starts below.
img { float: right; }
.footer { clear: both; }