Intro to HTML HTML Tags HTML file HTML heading HTML line breaks HTML Lists HTML Divs HTML images HTML Attributes HTML hyperlink HTML Comment HTML Embed

HTML Div element


The <div> tag defines a division or a section mostly used as an container in an HTML document.

The <div> tag is easily styled by using the class or id attribute.
Any sort of content can be put inside the <div> tag!



The <div> </div> tag acts as an container & any styling given to a <div> will be applied to the overall content.


  • You will learn about the styling in the CSS course