|
The <div> and <span> elements allows designers to add styling to a page however differently.
The <div> is a block-level element as opposed to the <span> element which not.
You
would normally use the <div> element to position other elements
on your page. Like having a sidebar on the left and your content on the
right. It does what the table element was never intended to be used
for: layout.
As for the <span> element,
you would normally use this to apply certain styles to text within a
paragraph or in a certain area on your page.
|