The HTML5 div Tag

The HTML5 <div> tag is the key in separating different partitions within an HTML document. This is necessary because it makes it easier for author to construct the document in an organized way. At the same time, the document will also be more user-friendly.

Formatting is easy with HTML5 <div> tag. It is capable of determining which group the block elements should belong to. Then, applying the style and format for this group is easier with the use of CSS.

For the comparison of HTML4.01 and HTML5, the only difference when it comes to the use of <div> tag is the method on how it is aligned. For HTML4.01, the align attribute can be used. However, this is already considered as obsolete. So, for HTML5, it is necessary to use CSS for doing this type of formatting.

Using the HTML5 <div> tag is not a problem because it is compatible with both the Events Attributes and Global Attributes in HTML5. All major web browsers are also attuned to the use of the HTML5 <div> tag.

Featured pages


Learn about HTML5 architecture, design principles and patterns on HTML5 Overview Tutorial. Become …


Learn about HTML5 tags and discover a new list of HTML5 tags. Find out about HTML5 tags support by…


 Learn HTML5 development techniques, tips and tricks on our website. Find out what is required…

Date Time Picker

HTML5 forms use date and time controls regularly. HTML5 date and time controls are used by booking …