Does anyone know the HTML code to make a text box that you can put html codes in it?

Like for a comment tag or layout there's always a text box under it with the html code available for people to copy and paste it. I want to know the code to make the text box and be able to put code into it for other people to copy and paste.

2 Answers

  • Anonymous
    1 decade ago
    Favorite Answer

    i am not sure if that's what you mean...


    <input type="text" name="code" value="your code here" />


    <textarea name="code" rows="11" cols="66"> your code here </textarea>

  • Anonymous
    1 decade ago

    <textarea cols="50" rows="10"> Enter your "codes" {snicker} here </textarea>

    Adjust the cols and rows to make the box the size you want.

Still have questions? Get your answers by asking now.