![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Place autofocus in the text box when a page gets loaded without JavaScript support in HTML?
The autofocus attribute is a boolean attribute. When present, it specifies that an <input> element should automatically get focus when the page loads. An example is given below
<!DOCTYPE html> <html> <body> <form action = "/new.php"> First Name: <input type = "text" name = "fname" autofocus><br> Last Name: <input type = "text" name = "lname"><br> <input type="submit"> </form> </body> </html>
Advertisements