Technology Programming

How to Code HTML for a Manual Vertical Scroll Box

    • 1). Launch your HTML editor. You can use TextEdit (Mac) or Notepad (PC) if one is unavailable. Both programs are preinstalled on Apple or Windows operating systems.

    • 2). Create a blank document. Select "File" and "New" from the program's navigation menu.

    • 3). Type the following code into the document window:

      <textarea rows="3" cols="30">

      This is where the text area code goes.

      </textarea>

      Textarea is a multiline text box. The "rows" number signifies how many lines of text are displayed. "Width" equals how wide the text area is. Rows and width can be adjusted according to your preference. All text between the open and closed <textarea> tags displays on page load.

      Whether a vertical scroll bar appears depends on how much prepopulated text is added. If you have less text, assign smaller numbers to the rows and width to get the scroll bar to appear.

    • 4). Select "File" and "Save As" from the program's navigation menu. Choose the location where you'd like to store the file. Enter the filename with no spaces. Place ".htm" or ".html" (no quotation marks) after the filename to save it as an HTML document.

    • 5). Locate the file on your computer. Right-click the file and select "Open With." Choose an Internet browser to preview the file. Upload the file to your server if everything looks fine.



Leave a reply