DIV vs SPAN

DIV vs SPAN
Author Profile Picture

When coding block elements in HTML, there are two different tags. So how do you determine which one? Read on to find out.

 

div

In HTML, the <div> tag indicates a block-level element. Think of this as a brick wall where all the bricks are stacked directly on top of each other.

 

span

The <span> tag indicates an inline element. This is like one vertical row of a brick wall where each brick is next to the other.

 

Want your own HTML website? Contact us today.