text box html code for website?!?

I need a scrolling text box code that i can put html cod is so that people can copy the raw code...does anyone have the scroll box code? I need it for my website for layout codes.

3 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    its:

    < textarea>TEXT OR CODE HERE</ textarea>

    ^^ thats the code for the textbox where people copy the code for whatever you want them to take.

    *BUT: you MUST remove the spaces between the < & "textarea"!!!! it won't work if you dont! (same for the </ & textarea)

    i know it sounds confusing.. but i think i did my best.

  • 1 decade ago

    <textarea style=" width: 300px; height: 300px; "> put the code here </textarea>

    change the numbers to get different sizes (in pixels) - if you don't tell it the size, it makes it really small by default so it's best to put the size in

    If you use CSS already, you can use your <style> section or your CSS file to put the sizes in rather than the inline CSS - but if you've no idea what I'm talking about then you'd best keep it like it is ;)

    Also, it might be an idea to use html entities for the code that's inside the box - this means replacing < with &gt; and > with &lt; etc...

  • Core
    Lv 6
    1 decade ago

    <textarea>TEXT HERE </textarea>

    Or if you want a certain size:

    <textarea rows=# cols=#> TEXT GOES HERE </textarea>

Still have questions? Get your answers by asking now.