Quantcast
Channel: LiveJournal Tutorials and Lessons
Viewing all articles
Browse latest Browse all 50

Creating a scrolling text box using the <textarea> HTML tag

$
0
0

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.

<textarea cols="20" rows="5"> your text box contents go here </textarea>

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 &amp;, &lt; and &gt; respectively.

Additional References
Common HTML Effects

Contributed by bekijane


Viewing all articles
Browse latest Browse all 50

Trending Articles