What is a <div> tag?
Experience Level: Junior
<div> tag is a container that encapsulates other page elements.
It is great for grouping elements and styling them. The
<div> tag can be completely invisible or can have borders and different background color. It can have margin and padding and is great for creating panels.
Related HTML job interview questions
What is a <p> tag?HTML Junior
What is a <span> tag?HTML Junior
What is a basic structure of the HTML page?HTML Junior
What is the difference between html Element and Attribute?HTML Junior
How can you display HTML code of a web application?HTML Junior