
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How do we display the visible width of a text area in HTML?
Use the cols attribute in HTML to display the visible width of a textarea. You can try to run the following code to implement cols attribute −
Example
<!DOCTYPE html> <html> <body> <textarea rows="3" cols="40"> This is a demo paragraph. This is a demo paragraph. This is a demo paragraph. This is a demo paragraph. </textarea> </body> </html>
- Related Articles
- How do we display a text area in HTML?
- How do we set the visible number of lines in a text area in HTML?
- How do we display inserted text in HTML?
- How do we include the direction of text display in HTML?
- How do I display only the visible text with jQuery?
- How do we display a script in HTML?
- How do we display a table cell in HTML
- How do we add the width in characters for in HTML?
- How do we set text font in HTML?
- How do we include big text in HTML?
- How do we create underlined text in HTML?
- How do we create preformatted text in HTML?
- How do we add bold text in HTML?
- How do we create the title of the text track in HTML?
- How do we include an emphasized text in HTML?

Advertisements