DEV Community

Cover image for Alternatives for the < div > tag.
Syed Ahmad Mustafa
Syed Ahmad Mustafa

Posted on • Edited on

Alternatives for the < div > tag.

The < div > tag defines a division or a section in an HTML document. The div tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript.

Although, there are a few alternatives as well!

Alt Text

Alt Text

Alt Text

Alt Text

Alt Text

Alt Text

More info can be found here -
https://www.w3schools.com/tags/default.asp

Top comments (4)

Collapse
 
kewbish profile image
Emilie Ma

Just letting you know, the <div> tags render strangely, and there's a little missing block and weird formatting. You might want to wrap it in a codeblock! :)

Collapse
 
totallymustafa profile image
Syed Ahmad Mustafa

Will keep that in mind πŸ€Ήβ€β™‚οΈ

Collapse
 
hxii profile image
Paul (hxii) Glushak • Edited

It should be mentioned that all the different tags you wrote about are not alternatives, per se, but rather semantic HTML.

Collapse
 
totallymustafa profile image
Syed Ahmad Mustafa

The short description for each tag makes it clear I guess, and even if that wasn't enough, now people can see your comment as well πŸ‘.