Validating a text area with html inside |
This is a discussion on Validating a text area with html inside within the HTML / XHTML forums, part of the Development category; How can I validate a text area that has HTML within it? I have this for it: Code: <div class="imagehold"> ... |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Senior Member Join Date: Jan 2009
Posts: 974
Thanks: 56
Thanked 11 Times in 11 Posts
![]() |
How can I validate a text area that has HTML within it? I have this for it: Code: <div class="imagehold"> <textarea rows="10" cols="10" id="coded"> <a href="http://www.cloud9comments.com/"><img src="file:///C:/Users/Michael/Desktop/My%20Templates%20and%20Sites/Comment/images/glitterplaceholder.gif" alt="" /></a><br /> <a href="http://www.cloud9comments.com/">Get your free comments by clicking here!</a> </textarea> </div> |
| | |
| | #2 |
![]() Join Date: Dec 2008 Location: Kent Uk
Posts: 1,595
Blog Entries: 6 Thanks: 15
Thanked 49 Times in 49 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Expertise: (X)HTML / CSS Experience: Professional |
I am not going to give you the answer to this one, I want you to learn, so I want you to go to w3c and validate it, then tell me what the validator said and what you think it means...
__________________ web design kent |
| | |
| | #3 |
| Senior Member Join Date: Jan 2009
Posts: 974
Thanks: 56
Thanked 11 Times in 11 Posts
![]() |
I have had a look and dont understand the messages at all lol just tried html tidy to see what it said and it removes all the code and leaves the text.
Last edited by Michael; 18th December 2009 at 05:36 PM.. |
| | |
| | #4 |
![]() Join Date: Dec 2008 Location: Kent Uk
Posts: 1,595
Blog Entries: 6 Thanks: 15
Thanked 49 Times in 49 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Expertise: (X)HTML / CSS Experience: Professional |
paste it here and maybe I could give you a clue or two
__________________ web design kent |
| | |
| | #5 |
| Senior Member Join Date: Jan 2009
Posts: 974
Thanks: 56
Thanked 11 Times in 11 Posts
![]() |
It wont validate due to the tags from the cms but this is it: Code removed lol Last edited by Michael; 18th December 2009 at 05:42 PM.. |
| | |
| | #6 |
![]() Join Date: Dec 2008 Location: Kent Uk
Posts: 1,595
Blog Entries: 6 Thanks: 15
Thanked 49 Times in 49 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Expertise: (X)HTML / CSS Experience: Professional |
I meant paste what w3c says about it lol
__________________ web design kent |
| | |
| | #7 |
| Senior Member Join Date: Jan 2009
Posts: 974
Thanks: 56
Thanked 11 Times in 11 Posts
![]() | Code:
|
| | |
| | #8 |
![]() Join Date: Dec 2008 Location: Kent Uk
Posts: 1,595
Blog Entries: 6 Thanks: 15
Thanked 49 Times in 49 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Expertise: (X)HTML / CSS Experience: Professional | "document type does not allow element here" is the biggest clue mate... in other words its basically saying 'you cant do that'
__________________ web design kent |
| | |
| | #9 |
| Senior Member Join Date: Jan 2009
Posts: 974
Thanks: 56
Thanked 11 Times in 11 Posts
![]() |
Well it is within the body of it, the only thing I can think of is that it needs to be wrapped with form tags possibly?
|
| | |
| | #10 |
![]() Join Date: Dec 2008 Location: Kent Uk
Posts: 1,595
Blog Entries: 6 Thanks: 15
Thanked 49 Times in 49 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Expertise: (X)HTML / CSS Experience: Professional |
no, you dont get it.. the idea of that is an example of the problem, its not the problem you are having.. you have incorrectly nested a tag, and they give an example of an incorrectly nested tag.. not necessarily the same tag you have used. sometimes nesting the tag can be the solution, but not in this case.. it has to be moved as far as I am aware
__________________ web design kent |
| | |
![]() |
| Tags |
| inside, validating |
| Thread Tools | |
| Display Modes | |