Html Div Class And Its Example
HTML Division :
The HTML Content Division element (<div>) is the generic container for flow content. It has no effect on the content or layout until styled using CSS.
The <div> tag is nothing more than a container unit that encapsulates other page elements and divides the HTML document into sections. Web developers use <div> elements to group together HTML elements and apply CSS styles to many elements at once.
Division Example 1:
Output
Division Section backgro und background color is yellow and paragraph wi dth is 220px.
background Example 2:
Output:
This background is yellow |
This background is sky blue |
This background is green |
Division Example 3:
Output:
Background Color is Green