tags:

views:

22

answers:

2

I was wondering can I wrap a span tag around multiple a tags and another span tag?

Here is the Html code.

<span>
    <a href="#">link</a>
    <span>|</span>
    <a href="#">link</a>
    <a href="#">link</a>
    <a href="#">link</a>
    <a href="#">link</a>
</span>
A: 

Yes you can. That is valid html :) You can check with W3C Validator.

Sarfraz
A: 

Yes it's possible since both span and a are inline elements.

cherouvim