How to use a div in HTML5

The div tag is probably the most used HTML tag. Although HTML5 still makes use of div tags, the use of div decreases because of the existence of new HTML5 elements like article and section. Previously, a footer of a website was often defined as < div id="footer"></div >. By means of HTML5 the following tag can now be used <footer ></footer >. According to W3C div is meant to be used for non-representing content. To put it in another way: content which hasn’t got specific HTML5 tags still needs to be integrated into a div tag.



Was this useful?