I have this code: <textarea rows="7" cols="19"><a href='http://domain.com' title='Fun><img src='http://domain.com/imgs/88x31.gif' border='1' alt='Fun'/></a> </textarea> Code (markup): that doesn't validate. Here is the error I get from http://validator.w3.org …domain.com' title='Fun'><img src='http://domain.com/imgs The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). Code (markup): Any Ideas on how to fix it so that it validates? Thanks in advance!
hey thanks for helping........ on this page.......it seems to be saying you can......... http://learningforlife.fsu.edu/webmaster/references/xhtml/tags/forms/textarea.cfm Is that page just wrong or something?
A background image could be put, but an image I think not. That's why the validator said it's improper nesting, you can't put an <img> tag inside a <textarea> tag.
ok its not an image though........I am trying to make display the code for an image...does that make sense? This is so that people can copy the code for a linked button.
Change all opening angle brackets ("<") to "<" and all closing angle brackets (">") to ">". The code will validate, and the text inside the textarea will appear the same.