Send to a Friend

makemo's avatar

Putting an <IMG…> in a <SPAN> is ok, right?

Asked by makemo (531points) 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

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.