Send to a Friend
Putting an <IMG…> in a <SPAN> is ok, right?
Asked by makemo (531)
February 8th, 2009
Just to be sure, there’s nothing wrong, putting anything else than text inside a <span> … </span> element, right? For example:
<span id=”…”><img src=”…” width=”…” height=”…” alt=”…”></span>
In my The Ultimate HTML Reference book it says, quote:
“A span is an inline element, and must only contain text content or nested inline or phrase elements. It shouldn’t be used to surround block-level elements…”
Using Fluther
or