HomeThe ClassicsFarai's Codelab

Div divisiveness | scottohara.me

Published:

See Div divisiveness | scottohara.me on www.scottohara.me

The <div> is the most versatile and used element in HTML. It represents nothing, while allowing developers to manipulate it into almost anything by use of CSS (for styling), JavaScript (for functionality) and ARIA (for accessibility information).

<div>s are meaningless, and that’s a good thing. You can use it to group elements to provide styling or create a region. Just be sure not to them where a more semantic element will work (like buttons).