Horje

How to add A text area with autofocus

The textarea autofocus attribute.

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The textarea autofocus attribute</h1>

<textarea rows="4" cols="50" autofocus>
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>

</body>
</html>

Output should be:

How to add A text area with autofocus




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin