Published:
What is the difference between HTML tagsand ? div is a block element, span is inline. This means that to use them semantically, divs should be used to wrap sections of a document, while spans should be used to wrap small portions of text, images, etc. For example:This a large main division, with a small bit of spanned text!Note that it is illegal to place a block level element within an inline element, so:Some text that...is illegal. added on 10-Feb-2018I wantto mark up