Other Added
#1 in Business Subscribe Email Print

You are here: Home > Internet and Businesses Online > Web Development > XHTML Basics - DIV or SPAN? DIV vs SPAN

Tags

  • containers
  • behaviours
  • applying
  • align leftrightcenterjustifyspan
  • default behaviours
  • allow localised

  • Links

  • Training Your Dog to Good Feeding Habits
  • How To Avoid Lawn Care Business Failure
  • Challenge Yourself to Breathe Consciously
  • Other Added - XHTML Basics - DIV or SPAN? DIV vs SPAN

    5 Ways to Get Free Traffic to Your Blog
    Here are some ways you can get web traffic to your blog for free. Getting traffic to your blog is not easy. A new blog might get 10 - 20 visitors daily. If your blog is good and updated frequently it will give you
    le sections of HTML. By applying an id to a DIV you can also add controls using JavaScript.

    A SPAN tag is not intended to container other tags, but rather to allow localised styling. This is e

    Online Poker: Become a Poker Affiliate and Cash in on the Boom
    The online gaming industry is experiencing huge economic growth, dominating vast sections of the virtual and real advertising. Billboards, magazines and even sports at sports events, the emblems and logos of popul
    These two tags are often used inter-changeably by developers for different reasons, so what are the differences between them? How should they be used to markup web pages?

    The basic difference between the two is their default behaviour. DIV tags are block-level tags and can be used as containers for other tags. SPAN tags are inline tags and should only contain content. These default behaviours can of course be altered by CSS definitions, but are default in any browser context.

    As a reference, if you want to align text within these tags use the following CSS attributes;

    DIV - text-align: left|right|center|justify

    SPAN - float: left|right

    DIV tags are also used to define logical divisions of page content. It also allows CSS to be defined for whole sections of HTML. By applying an id to a DIV you can also add controls using JavaScript.

    A SPAN tag is not intended to container other tags, but rather to allow localised styling. This is es

    Writing To The Technical Level Of Your Audience
    Business correspondences, documents, articles, etc. are written and received by people at all levels of expertise and education. The writer bears the responsibility of using the correct level of diction (words) a
    etween the two is their default behaviour. DIV tags are block-level tags and can be used as containers for other tags. SPAN tags are inline tags and should only contain content. These default behaviours can of course be altered by CSS definitions, but are default in any browser context.

    As a reference, if you want to align text within these tags use the following CSS attributes;

    DIV - text-align: left|right|center|justify

    SPAN - float: left|right

    DIV tags are also used to define logical divisions of page content. It also allows CSS to be defined for whole sections of HTML. By applying an id to a DIV you can also add controls using JavaScript.

    A SPAN tag is not intended to container other tags, but rather to allow localised styling. This is e

    Google AdSense Rewards Content with Advertising Revenue
    If you've been looking for an easy way to increase your website's revenue, Google AdSense may be your answer.Google AdSense is a phenomenal new advertising revenue program that is taking the Internet by sto
    ours can of course be altered by CSS definitions, but are default in any browser context.

    As a reference, if you want to align text within these tags use the following CSS attributes;

    DIV - text-align: left|right|center|justify

    SPAN - float: left|right

    DIV tags are also used to define logical divisions of page content. It also allows CSS to be defined for whole sections of HTML. By applying an id to a DIV you can also add controls using JavaScript.

    A SPAN tag is not intended to container other tags, but rather to allow localised styling. This is e

    Outsourcing - 4 Tips On Pricing and Negotiating
    When outsourcing, it’s important to know how to set a price, both the hiring company and the provider, as well as how to negotiate for a better deal. The main thing to remember when you are dealing with the issue
    DIV - text-align: left|right|center|justify

    SPAN - float: left|right

    DIV tags are also used to define logical divisions of page content. It also allows CSS to be defined for whole sections of HTML. By applying an id to a DIV you can also add controls using JavaScript.

    A SPAN tag is not intended to container other tags, but rather to allow localised styling. This is e

    At the Speed of Light
    How many times has someone you've called said, "Why don't you send me some information on your company"?Ask yourself, before you send anything: How will this be dealt with once it arrives at that person
    le sections of HTML. By applying an id to a DIV you can also add controls using JavaScript.

    A SPAN tag is not intended to container other tags, but rather to allow localised styling. This is especially useful when combined with classes. It has even been suggested that future semantic web models will use such markup to define relevant content.

    For example by defining a class telephone, when can ensure all telephone numbers are displayed in the same fashion:

    44-20-555-4444

    SPAN tags have similar properties but should be used to reference inline content and apply style by classes.

    In summary: use divs for defining sections of a page, and spans to enclose and style text or classes of text.

    Permission is granted for reproduction of this article, so long as it is published in its entirety, with footnotes attached.

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.otheradded.com/article/86400/otheradded-XHTML-Basics--DIV-or-SPAN-DIV-vs-SPAN.html">XHTML Basics - DIV or SPAN? DIV vs SPAN</a>

    BB link (for phorums):
    [url=http://www.otheradded.com/article/86400/otheradded-XHTML-Basics--DIV-or-SPAN-DIV-vs-SPAN.html]XHTML Basics - DIV or SPAN? DIV vs SPAN[/url]

    Related Articles:

    Cut Down On Business Paperwork With HR Workflow Management Software

    Launch Your Home Business Even With Limited Funds

    Reinvest For Success

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com