What do I need the tag <div> for?

I’m a beginner, please explain me simpy xD

what you don’t understand

I mean Why should I set the tag <div ? What gonna change?

Tag <div make block in your code

In simple terms:

<div> </div> tag is used to represent the division between the content.

It simply separates one content from another in HTML page.

2 Likes

You use div tags to group content, usually content that you want to visually group together.

HTML5 introduced a bunch of new tags like header, main and footer which people used to use div tags for to group the items together.