RE: [WSG] Using span
Hi Gabriel, Spans are inline elements, that is, they can be used, for instance, to highlight a area within another element, i.e. to change the colour of a few words to enhance a look. Divs are block level elements, effectively describing and enclosing a logical block, a menu structure for instance. Divs can contain spans but not vice-versa. Hope this helps, Mike Pepper www.seowebsitepromotion.com www.gawds.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gabriel Vasquez Sent: 02 May 2004 20:05 To: [EMAIL PROTECTED] Subject: [WSG] Using span Hi List! Ever since I've been using the standards approach to web design, I've never used spans at all. What's the point of using them? Thanks for your input! Gabriel --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.673 / Virus Database: 435 - Release Date: 5/1/2004 * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help * * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
Re: [WSG] Using span
Gabriel Vasquez wrote: Hi List! Ever since I've been using the standards approach to web design, I've never used spans at all. What's the point of using them? Thanks for your input! Gabriel --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.673 / Virus Database: 435 - Release Date: 5/1/2004 * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help * Well, span is an inline element. You can use it for describing words or pieces of text that don't nessecerily have to consist of an entire block. p span id=presidentGeorge W. Bush/span is the president of the span id=countryUnited States/span. /p Granted, there are many inline elements for specific purposes (code, pre, q, etc), but it's best to keep things semantic as this is, in essence, XML. * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
Re: [WSG] Using span
Ever since I've been using the standards approach to web design, I've never used spans at all. What's the point of using them? In addition to what Mike wrote, they, like divs, can be used as hooks for style rules. In other words, if there is something which you wish to style, but there isn't any exsisting tag which includes exactly the right amout--no more and no less--you would use a span for inlines and a div for blocks. Mordechai * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
RE: [WSG] Using span
Thank you for clearing that up Mike and Noa, I appreciate it! Gabriel * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *