Learn HTML Box Modeling
In HTML Div Element(s) The “div” tag defines division or section it is used to define a section of an HTML document. Web developers use “div” elements to group together HTML elements and apply CSS styles to many elements at once.
Making a div
Example How to use div in HTML.
Making a Div with Height and Width
Making a Div with Height and Width in pixels
CSS Float Property
The float
property is used for positioning and layout on web pages. The float
property can have one of the following values:
- left – The element floats to the left of its container
- right- The element floats to the right of its container
- none – The element does not float (will be displayed just where it occurs in the text). This is default
- inherit – The element inherits the float value of its parent