1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

Why are <span> tags useful?

Discussion in 'Graphics and Design' started by noahwilson, May 8, 2013.

  1. noahwilson

    noahwilson Member

    Joined:
    Apr 20, 2013
    Messages:
    154
    Likes Received:
    3
    Trophy Points:
    18
    Gender:
    Female
    Hi friends
    I was just reviewing a brief tutorial on W3Schools and after reviewing <span> tags, I have a question. What are they for? please share your feedback.
    Thanks.
    Loading...
  2. shashank2013

    shashank2013 Member

    Joined:
    Apr 20, 2013
    Messages:
    27
    Likes Received:
    3
    Trophy Points:
    8
    Gender:
    Male
    Location:
    NEW DELHI
    hello friend.

    <span> tag is very important and interesting tag, it's really popular and useful in layout design, it basically use when you want to apply effect or style on a piece of word or whole sentence within a body tag.

    like this:

    <!DOCTYPE html>
    <html>
    <body>

    <p>My mother has <span style="color:pink;font-weight:bold">blue</span> eyes and my father has <span style="color:pink;font-weight:bold">dark green</span> eyes.</p>

    </body>
    </html>

    output :

    My mother has blue eyes and my father has dark green eyes.

    Three important things about <spam> as follow:
    • The <span> tag is used to group inline-elements in a document.
    • The <span> tag provides no visual change by itself.
    • The <span> tag provides a way to add a hook to a part of a text or a part of a document
  3. Flecher Adams

    Flecher Adams New Member

    Joined:
    May 1, 2013
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Gender:
    Male
    Location:
    India
    The <span> tag is an inline-elements for pieces of text in a HTML. It is used to group elements for styling purposes, it is very useful to assign a set of presentational attributes.

    Example:

    <html>
    <body>

    <p>The <span style="color:Red;font-weight:bold; font-size:150%">Spam</span> tag is an <span style="color:green;font-weight:bold">inline-elements</span> for pieces of text in a <span style="color:Blue;font-size:150%">HTML.</p>

    </body>
    </html>
  4. idealphilli

    idealphilli Member

    Joined:
    Apr 14, 2013
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Philadelphia , Pennsylvania
    The HTML <span> tag is useful for grouping.It is used for applying styles to inline elements.
    For example
    <p>This is an example of <span style="color:green">span tag</span>.</p>
  5. David Abraham

    David Abraham New Member

    Joined:
    Mar 12, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Agreed with you idealphilli bro

Share This Page