What is div in html?

In HTML, a <div> is a basic building block.

It stands for "division" and acts like a container, you can put any other HTML elements code inside it.

It can be used to organize and style content on a webpage using CSS style (Cascading Style Sheets). By applying CSS rules to <div> elements, they can control their position, appearance, style, size, and other visual properties, to create the layout and structure of a webpage.

Go from files to website in seconds.

Start a free trial for 7 days — no credit card required

Get Started for Free