Div Id Content
Div tag has both open div and closing div tag and it is mandatory to close the tag.
Div id content. The div tag is used in html to make divisions of content in the web page like text images header footer navigation bar etc. The div tag defines a division or a section in an html document. The div tag is known as division tag. See how to use the tag to group html elements and style them with css how to apply class id style and other attributes to tag.
The html content division element div is the generic container for flow content. It has no effect on the content or layout until styled in some way using css e g. Any sort of content can be put inside the div tag. If button mkyong1 is clicked the content of the div element with an id of textid will be changed to mkyong1.
The div tag is easily styled by using the class or id attribute.