Greetings.
Occasionally I come across sites that use something like the following
combination of CSS and HTML:
h1 {
height:100px;
width: 500px;
background:url(welcome.gif) no-repeat;
}
h1 span {display:none;}
<h1><span>Welcome to my home page!</span></h1>
I'm a bit confused by this usage. What is the reason for doing it this way
rather than doing everything in HTML, as follows?
<h1><img src="welcome.gif" width="500" height="100" alt="Welcome to my home
page!" /></h1>
Is it because <img> is not allowed in headers? Regardless, where in the
(X)HTML specifications is it explained which tags are allowed to occur
within which other tags?
Regards,
Tristan
--
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
(7_\\ http://www.nothingisreal.com/ >< To finish what you