The primary difference is that, by default,
tags are block elements (there are line breaks before and after the element) and span tags are inline elements (no default line breaks). This can be changed with the display: style, however.
2006-07-21 01:50:21
·
answer #2
·
answered by John J 6
·
1⤊
0⤋
span is used to set the display properties of a piece of text
div is a container for other elements (text, images, tables etc) it can have a with, and height, and can be set to be displayed at a certain position on the screen etc.
2006-07-20 23:44:00
·
answer #3
·
answered by Deep Thought 5
·
1⤊
0⤋
if you use new line after every tag it'll make the code more readable to a human. But it makes absolutely no difference for a browser.
2016-03-27 01:52:31
·
answer #4
·
answered by Anonymous
·
1⤊
0⤋
it specifies the allignment of the enclosed element. can be use to divide a document into sections that r aligned differently.
2006-07-20 23:45:58
·
answer #5
·
answered by Anonymous
·
1⤊
0⤋
this is a good website for you
http://www.w3schools.com
2006-07-20 23:39:13
·
answer #6
·
answered by currenz 2
·
1⤊
0⤋