span tag

V

Vince

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.
 
J

Jukka K. Korpela

Vince said:
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.
 
V

Vince

thank you, for your helpful reply.

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 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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top