+ 1

What is <div> and <span> stand for?

i hope knowing these make me easier to remember.

1st Feb 2017, 9:41 AM
prayoga
prayoga - avatar
3 Respuestas
+ 3
<div> and <span> are generic containers... the first is of 'block' type, and the second 'inline'... <div> allow you to define block sections in your contents and style them, while <span> allow you to style a sub-part of a block container, without breaking line before and after and get the max width available ( relativly of parent container ) ^^
1st Feb 2017, 10:06 AM
visph
visph - avatar
+ 1
Div stands for Division. Span doesn't stand for anything special. Good luck!
1st Feb 2017, 10:05 AM
Oscar
Oscar - avatar
+ 1
Not sure about span, but div stands for division. https://www.w3.org/TR/REC-html32#block
1st Feb 2017, 10:08 AM
Marcell Nemeth
Marcell Nemeth - avatar