Today is . Page created 11/07/05, updated 09/19/06

Material Inside Textarea Form Does not Appear Correctly

<FORM>
<TEXTAREA COLS="40" ROWS="5">
Place Material Here
</TEXTAREA>
</FORM>

I have placed the code from the left table into the form in the right table for people to be able to copy/cut and paste it and it does not appear correctly. What have I done wrong?

This is a very common mistake that people make and once you think about it, it makes sense why what you are putting inside a <textarea> <form> </textarea> </form> does not appear correctly. You are placing a textarea form inside a textarea form for copying code, you are causing the computer to read the opening and closing textarea and form tags prematurely. Therefore it is closing before it gets a chance to correctly read what is inside the form itself. Okay now you are asking yourself, "how do I work around this to get the form inside a form to appear correctly?".

<FORM>
<TEXTAREA COLS="48" ROWS="5">
Place Material Here
</TEXTAREA>
</FORM>

In order to have the correct HTML code appear, you must modify the form and textarea tags so they will be visible and not read prematurely. Just like when you want to have people view your HTML tags, you must do the same thing here. In other words, in order to see the below appear correctly "Inside" the textarea form:


<FORM>
<TEXTAREA COLS="40" ROWS="5">
Insert Material Here
</TEXTAREA>
</FORM>

You must write it as below and place it inside the textarea form.

&lt;FORM&gt;
&lt;TEXTAREA COLS="40" ROWS="5"&gt;
Now it shows up correctly.
&lt;/TEXTAREA&gt;
&lt;/FORM&gt;

In reality, all you are doing is replacing the greater than > with &gt; and less than < characters with &lt;

To answer your next question, "Yes", when you view it inside the textarea as written above, it "Will" appear correctly. By doing it this way, you are working around the computer reading the tags prematurely.

A good rule of thumb to follow is if you are not sure, just write any HTML tag this way to avoid any possible unforeseen problems.

You are now saying to yourself something like;

"......I have alot of stuff I need to do this with. I wonder if there an easier way instead of hand coding each individual little < and > for the code to appear correctly......"

To answer your question in a single word"Yes". We do have a "javascript" and a downloadable "Freeware" program that will do this for you. Just grab the below link and you are there.
View HTML Codes ]

I f you have any problems with this page or with anything else, feel free to consult our FAQ ] and if you can't find the answer there, contact us ].
Rate This Page ]  

Talk Live To A Support Technician

Search Our Site By Individual letter

A ]  [ B ]  [ C ]  [ D ]  [ E ]  [ F ]  [ G ]  [ H ]  [ I ]  [ J-K ]  [ L ] 
M ]  [ N-O ]  [ P-Q ]  [ R ]  [ S ]  [ T ]  [ U-V ]  [ W ]  [ X-Y-Z ] 

Little Tips Directory

Page 1  ] [ Page 2 ] [ Page 3 ] [ Page 4 ] [ Page 5  ] [ Page 6  ] [ Page 7  ]

Index Page 1 ] [ Index Page 2 ] [ Index Page 3 ] [ Index Page 4 ] [ Index Page 5 ]
Index Page 6 ] [ Index Page 7 ] [ Index Page 8 ] [ Index Page 9 ] [ Index Page 10 ]
Index Page 11 ] [ Index Page 12 ] [ Index Page 13 ]

News Letter Archives ] [ Navigation Page ] [ Archives Of Published Material ]
Link To Us ] [ Alphabet Index ] [ Feedback ] [ On Line Support ] [ FAQ ]
Webmaster Utilities ] [ Casino ] [ Banner Exchange ] [  Advanced Site Search ]

If you are part of the ever growing number of webmasters who enjoy sharing your knowledge with others on web design, join The Consigliere Ltd. web ring to broaden your scope of exposure.
Join Today

This Site Was Built And Is Maintained Exclusively by
The Webmaster @ Consigliere Ltd.

Copyright © Consigliere Ltd., All Rights Reserved. 2001-