Forum Moderators: open

Message Too Old, No Replies

Putting & within text

         

herrjosua

5:57 pm on Feb 26, 2009 (gmt 0)

10+ Year Member



I am trying to validate my website before I post an I keep on getting the warning message:

"Line 75, Column 48: character "&" is the first character of a delimiter but occurred as data.

<td>Savannah College of Art & Design</td>&#9993;
This message may appear in several cases:

You tried to include the "<" character in your page: you should escape it as "&lt;"

You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag."

I have tried putting a paragraph tag around it, but I still get the same warning message.

My Doctype is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Thanks
Josh

coopster

7:09 pm on Feb 26, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.

Says it all right there, herrjosua. You need to use the html entity for that character when embedded in your text:

<td>Savannah College of Art &amp; Design</td>&#9993;