Creating a scrolling text box using the HTML tag

Dec 19, 2006 01:34


A scrolling text box is often used to put code onto a LiveJournal page for other people to copy to use elsewhere.

Here is the code that creates a simple scrolling text box. Changing the values in the "cols" and "rows" will make your text box bigger or smaller.

your text box contents go here
You can add a scrolling text box to your user information page by putting the HTML in the "about you" section of your Edit Profile page. You can also add them to a journal entry or a comment.

Malformed HTML tags can cause your journal, comments pages and friends pages to display incorrectly or trigger an " irreparable invalid markup in entry" error. To avoid malformed HTML you should "escape" any HTML you put in the text box in order to ensure that the code displays correctly. This means that &, < and > should be typed as &, < and > respectively.

Additional References Common HTML Effects
Contributed by bekithewitch

~ textarea, ~ scrolling text box

Previous post Next post
Up