Thi"/> Thi">

Home  >  Article  >  Web Front-end  >  How can we display the visible width of a text area in HTML?

How can we display the visible width of a text area in HTML?

WBOY
WBOYforward
2023-09-10 21:57:03898browse

How can we display the visible width of a text area in HTML?

Use the cols attribute in HTML to display the visible width of the text area. You can try running the following code to implement the 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>

The above is the detailed content of How can we display the visible width of a text area in HTML?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete