

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to specify which form element a calculation is bound to with HTML?
Use the for attribute in HTML to specify which form element a calculation is bound to with HTML.
Example
You can try to run the following code to implement the for attribute −
<!DOCTYPE html> <html> <body> <p>Education:</p> <form action=""> <label for = "graduate">Graduate</label> <input type = "radio" name = "education" id = "graduate" value = "graduate"><br> <label for = "ugraduate">Under-graduate</label> <input type = "radio" name = "education" id = "ugraduate" value = "ugraduate"><br> <input type = "submit" value = "Submit"> </form> </body> </html>
- Related Questions & Answers
- How to specify where to send the form-data when a form is submitted in HTML?
- How to specify that the element is read-only in HTML?
- How to specify that an element is not yet relevant in HTML?
- How to specify that the element must be filled out before submitting the form in HTML?
- How to specify a unique id for an element in HTML?
- How to specify whether the form-data should be encoded while submitting to the server with HTML?
- How to specify the HTTP method to use when sending form-data in HTML?
- How to specify a minimum value in HTML?
- How to specify citation in HTML?
- How to specify that the form should not be validated when disabled in HTML?
- Use HTML with jQuery to make a form
- How to create a signup form with HTML and CSS?
- How to clear HTML form fields with jQuery?
- How to specify whether the <form> or the <input> element should have autocomplete enabled in HTML?
- How to specify the language of the element's content in HTML?
Advertisements