It defines a division or a section in an HTML document
It is used to group block-elements to format them with CSS
DIV tags are lighter than tables so, DIV tags are used more frequently in PHP to load faster
Using DIV tags is useful for formatting whatever content is within the DIV tag
DIV tag is used to create and structure an HTML document or layout
Generally you use the div tag in HTML, not in PHP. PHP is an executable language, not markup but DIV is a markup tag
|