HighDots Forums  

div and span...

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss div and span... in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RAB
 
Posts: n/a

Default div and span... - 01-05-2007 , 04:02 PM






What is the difference between a <div> and a <span>? When is it best
to use each?

Thanks,
RABMissouri2007


Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: div and span... - 01-05-2007 , 04:23 PM






RAB wrote:
Quote:
What is the difference between a <div> and a <span>? When is it best
to use each?
DIV delimits a logical subdivision of your document. SPAN delimits a
sequence of inline content. Almost anything can be inside a DIV. SPANs
are normally contained inside a P, and H?, a LABEL, or other element
that doesn't contain block elements, and can only contain inline text
and inline elements such as <EM>.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.