

Also, these elements add a line before and after it. Note: The block elements are those that occupy full available width. Alternatively, you can say, the div is a container that encloses other HTML block-elements to format them with CSS. The div HTML tag is used to group HTML block elements like paragraphs, headings, and format those with style or CSS. The div tags are generally used to define the layout or sections of the web pages. The div element defines the “ division” in the HTML documents. 5.2 How to align div aligning right example.5.1 A div with CSS center align example.4.4 The div with ID attribute and CSS example.

4.2 CSS style in class attribute of div.3.6 An example of div with padding and margin.3.1 Example of style in div for setting font size and color.
