/    Sign up×
Community /Pin to ProfileBookmark

can a span be self-closing?

I just saw this on a website. The person styled the span as a self-closing element, and it appears to work. I guess span can be used that way? Anyone know about this?

[CODE]<h1><a title=”Portimão Global Ocean Race” href=”index.php”>[COLOR=”Red”]<span/>[/COLOR]</a></h1>[/CODE]

[CODE]#header h1 span {
background:transparent url(images/logo.gif) no-repeat scroll 0 0;
height:125px;
position:absolute;
width:293px;
}[/CODE]

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@scragarDec 04.2008 — I know it won't validate, at least not in HTML, XHTML it will, but IE won't like that.
×

Success!

Help @johnnyblotter spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...