Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 22nd, 2002, 08:31 PM
tim tim is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 62 tim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 9 sec
Reputation Power: 13
Send a message via ICQ to tim
What does a <span> tag do?

This sounds silly but I don't seem to get the answer clearly over the web ...but what does a <span> tag actually do? Must it always be placed in a <td> or can it be stand alone?
__________________
Beginner

Reply With Quote
  #2  
Old August 22nd, 2002, 08:55 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
the span tag doesnt actually do anything. Actually it does do some things

by its self it does nothing.

but you can specify classes and css, inside it, align align test

Reply With Quote
  #3  
Old August 23rd, 2002, 02:52 AM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 588 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
Hi Tim,
A <span> tag is like an invisible sheet if you will. It can encompass many items and is mainly used for formatting, like this:

<span class="myClass">Hello There</span>

Now, if we had a .CSS file with a myClass class in it like this:

.myClass
{
color: red;
border: solid 1pt black;
}

... then the "Hello There" text would be red and surrounded with a 1pt wide black bored. Span's are alot like <div> tags, and can be used to align: <span align="right">test</span>, etc.

Reply With Quote
  #4  
Old August 23rd, 2002, 04:01 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 13
Send a message via ICQ to James Yang
think of it as a container
__________________
Regards,

James Yang
.NET Developer / Network Engineer
MCSE, MCDBA, MCSA, CCNA

http://www.yellowpin.com/
http://www.opentechsupport.com/

Reply With Quote
  #5  
Old August 23rd, 2002, 04:19 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
con·tain·er Pronunciation Key (kn-tnr)
n.
A receptacle, such as a carton, can, or jar, in which material is held or carried.
A large reusable receptacle that can accommodate smaller cartons or cases in a single shipment, designed for efficient handling of cargo.


Source: The American Heritage® Dictionary of the English Language, Fourth Edition
Copyright © 2000 by Houghton Mifflin Company.
Published by Houghton Mifflin Company. All rights reserved.


--------------------------------------------------------------------------------

container

\Con*tain"er\, n. One who, or that which, contains.
Source: Webster's Revised Unabridged Dictionary, © 1996, 1998 MICRA, Inc.


--------------------------------------------------------------------------------

container

n : something that holds things, especially for transport or storage
Source: WordNet ® 1.6, © 1997 Princeton University

Because i can eheh

Reply With Quote
  #6  
Old August 23rd, 2002, 11:09 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
The difference b/t a <DIV> and a <SPAN> is that a div contains the newline character ("\n"), and a span doesn't. So take your pick... Oh yeah, <DIV> was originally a Netscape tag, and <SPAN> was originally an IE tag (their version)......

Cheers,
Joe of 4Life
__________________
Check out 4Life today!

Reply With Quote
  #7  
Old August 23rd, 2002, 11:17 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 13
Send a message via ICQ to James Yang
i htink hes got the idea..tahnk to bens quality explanation!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > What does a <span> tag do?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap