Question - Why is float used in CSS?
Answer -
Float is a popular property in CSS to control the layout and position of an element on a web page.
Any element can be placed on the web page as per requirement. Consider the following example:
div { float: right; }