span tag

Discussion in 'HTML' started by Vince, May 26, 2005.

  1. Vince

    Vince Guest

    He there!

    is it permitted to insert a span block into another span block, like
    this ?

    <SPAN id=span1>
    <SPAN id=span2 style="display:none">
    </SPAN>
    </SPAN>

    I've tried something like this, but span2 still visible..
    any idea ??

    thanks a lot :)
    Vince.
     
    Vince, May 26, 2005
    #1
    1. Advertisements

  2. Vince <vincent@<remove>.> wrote:

    > is it permitted to insert a span block into another span block, like
    > this ?
    >
    > <SPAN id=span1>
    > <SPAN id=span2 style="display:none">
    > </SPAN>
    > </SPAN>


    The span element does not constitute a block in HTML sense (and it does
    not constitute a block in CSS sense by default). Other than that, the
    technical answer is "yes". You could have checked this from the nearest
    HTML reference faster than you typed your message.

    On the other hand, using <span> tends to mean that you have not tried
    to use appropriate markup. Using style="display:none" suggests that you
    are doing something foolish, or that this is not what you are trying to
    do in reality.

    > I've tried something like this, but span2 still visible..


    I don't believe you. Those spans create nothing visible, with or
    without the style sheet. Your actual document contains something else.

    Besides, whether the style sheet has some effect is a quite different
    issue.

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
     
    Jukka K. Korpela, May 26, 2005
    #2
    1. Advertisements

  3. Vince

    Vince Guest

    thank you, for your helpful reply.

    On Thu, 26 May 2005 13:51:50 +0000 (UTC), "Jukka K. Korpela"
    <> wrote:

    >Vince <vincent@<remove>.> wrote:
    >
    >> is it permitted to insert a span block into another span block, like
    >> this ?
    >>
    >> <SPAN id=span1>
    >> <SPAN id=span2 style="display:none">
    >> </SPAN>
    >> </SPAN>

    >
    >The span element does not constitute a block in HTML sense (and it does
    >not constitute a block in CSS sense by default). Other than that, the
    >technical answer is "yes". You could have checked this from the nearest
    >HTML reference faster than you typed your message.
    >
    >On the other hand, using <span> tends to mean that you have not tried
    >to use appropriate markup. Using style="display:none" suggests that you
    >are doing something foolish, or that this is not what you are trying to
    >do in reality.
    >
    >> I've tried something like this, but span2 still visible..

    >
    >I don't believe you. Those spans create nothing visible, with or
    >without the style sheet. Your actual document contains something else.
    >
    >Besides, whether the style sheet has some effect is a quite different
    >issue.
     
    Vince, May 26, 2005
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Don Wash
    Replies:
    2
    Views:
    4,961
    Don Wash
    Sep 7, 2004
  2. Lloyd Dupont
    Replies:
    2
    Views:
    947
    Lloyd Dupont
    Jan 8, 2006
  3. Fao, Sean
    Replies:
    1
    Views:
    2,190
    Bruce Barker
    Jan 26, 2006
  4. shruds
    Replies:
    1
    Views:
    1,239
    John C. Bollinger
    Jan 27, 2006
  5. Fulio Open

    Can span include span?

    Fulio Open, Jun 26, 2009, in forum: HTML
    Replies:
    5
    Views:
    755
    dorayme
    Jun 26, 2009
  6. Stéphane Klein
    Replies:
    2
    Views:
    2,181
    John Nagle
    Mar 30, 2010
  7. Dan Bishop

    DataGrid (body only) contained in <span>...</span> tags

    Dan Bishop, Jun 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    472
    Kilic Beg
    Jun 7, 2004
  8. Wang, Jay
    Replies:
    5
    Views:
    779
    Wang, Jay
    May 25, 2004
Loading...