"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Go Back   Webmaster Forums > Code Forum > CSS Forum

Reply
 
Thread Tools Rate this Webmaster Discussion
Old 02-01-2009, 07:30 AM   #1
adamsen
Senior Member
 
adamsen's Avatar
 
Join Date: Jan 2009
Location: Denmark
Webmaster Discussions: 128
Rep Power: 11
adamsen will become famous soon enough
<span>

What is the <span>-tag for? Is it the same as the <div>-tag?


__________________
W3schools
Practice makes expert
adamsen is offline   Reply With Quote
Old 02-01-2009, 09:30 AM   #2
rangana
Moderator/Allstar
 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City Philippines
Webmaster Discussions: 314
Rep Power: 24
rangana is a name known to allrangana is a name known to allrangana is a name known to allrangana is a name known to allrangana is a name known to allrangana is a name known to all
Send a message via Yahoo to rangana Send a message via Skype™ to rangana
Re: <span>

span tag is different from div tag.

The former is an inline-level element and the later is a block-level.

span tag is most used to hook a text in the document. When your element is inside the span tag, you have the ability to style them differently from the rest of the text.

For further reading:
http://www.w3schools.com/TAGS/tag_span.asp

Hope that helps.
__________________
Checkout my porfolio.
Please click the button when a member helped you.
Take time to use Forum's Search function.
rangana is offline   Reply With Quote
Old 11-05-2009, 12:19 PM   #3
maiden
New Member
 
Join Date: Nov 2009
Webmaster Discussions: 1
Rep Power: 6
maiden is on a distinguished road
Re: <span>

exactly! a span is usually used inside another element to customize text in a different way!
maiden is offline   Reply With Quote
Reply

Bookmarks

Tags
<span>

Thread Tools
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

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


Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
span problem with Mozilla lovedearsmit CSS Forum 1 05-21-2008 07:21 PM
can <span> do this? uthus CSS Forum 1 06-18-2006 01:42 PM
Help Using Span jackkane CSS Forum 1 05-27-2006 05:24 PM
Span / border question Smith CSS Forum 2 06-30-2004 03:31 PM
Span, Scrollbars, Positions Aminalaizer CSS Forum 7 10-21-2003 07:12 AM


All times are GMT -5. The time now is 08:54 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.