- 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
Set the name of the form the element belongs to in HTML?
Use the form attribute in HTML to set the name of the one or more form the element belongs to in HTML.
Example
You can try to run the following code to implement the form attribute −
<!DOCTYPE html> <html> <body> <form action = "" method = "get" id = "myform"> SubjectID: <input type = "number" name = "subid"><br> Subject Name: <input type = "text" name = "subname"><br> Total Students: <input type="number" name = "stcount"><br> </form> <button type = "submit" form = "myform" value = "Submit">Click</button> </body> </html>
Advertisements
To Continue Learning Please Login
Login with Google