homepage Welcome to WebmasterWorld Guest from 54.196.195.207
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
w3c compliant text box
Gimp




msg:4041168
 5:59 am on Dec 11, 2009 (gmt 0)

I am trying to add a text box to a site. In the text box I want to place the following code.

<a href="http://www.example.com"><img alt="gold award" src="http://www.example.com /gold-award.jpg" /></a>

I use this code that is generated by Adobe Dreamweaver CS3 and to which I add the above domain.

<textarea dir="ltr" id="Button1" lang="en" rows="5" cols="45" name="Button1" xml:lang="en"><a href="http://www.example.com"><img alt="gold award" src="http://www.domain.com /gold-award.jpg" /></a><textarea>

When I go to [validator.w3.org...] the code is not compliant. If I use the revalidate function and clean up with tidy, it removes the code <a href="http://www.example.com"><img alt="gold award" src="http://www.example.com /gold-award.jpg" /></a>

What am I doing wrong?

How can I make a code compliant text box that will allow me to add the code <a href="http://www.example.com"><img alt="gold award" src="http://www.example.com /gold-award.jpg" /></a>

Or is there something else I should do?

Thank you.

[edited by: caine at 4:08 am (utc) on Jan. 8, 2010]
[edit reason] only use EXAMPLE.COM for fictitious domain names [/edit]

 

bill




msg:4041178
 6:49 am on Dec 11, 2009 (gmt 0)

Have you tried escaping the HTML entities that you're putting between the <textarea> tags?

Gimp




msg:4041252
 10:03 am on Dec 11, 2009 (gmt 0)

Hi,

Thanks for the response.

I had no idea of escaping. I think I found what I need by searching bing. I will try to use what I found.

Thanks again.

Gimp




msg:4041292
 12:37 pm on Dec 11, 2009 (gmt 0)

I can now make the page verify.

I did it by manually inserting each of the character replacements. Is there a way to to this with an editor of some form. I am using adobe cs3 and see nothing in the help section about using escape.

Thank you.

Gimp




msg:4041859
 7:12 am on Dec 12, 2009 (gmt 0)

Answered my own question. Searched in bing, of all things, tool to escape on html, and wonders of modern technology I found a too. Thanks all for the help.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved