The CSS float property is used to place the element either left or right inside the container.
Let us describe the CSS float property. The CSS float property is used to align the floated item either in the left or right direction of the container. When the float property is applied to the HTML element then the rest of the content has been wrapped around the floated item. You have to clear the float so that the HTML element can flow in a normal way.