

- 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 we can group data in HTML forms?
To group related data in HTML forms use the <fieldset> tag. This tag creates a box around the related elements. The <legend> tag is used inside the <fieldset> tag to give a caption to the group.
Example
You can try to run the following code to group data in HTML forms −
<!DOCTYPE html> <html> <body> <form> <fieldset> <legend>Student Information:</legend> Student Name:<br> <input type="text" name="sname"> <br> Student Subject:<br> <input type="text" name="ssubject"> <br> </fieldset> </form> </body> </html>
- Related Questions & Answers
- How do we use radio buttons in HTML forms?
- How do we use checkbox buttons in HTML forms?
- How do we take password input in HTML forms?
- How do we send an email using HTML forms?
- Why do we use reset button in HTML forms?
- How do we reset all the input fields in HTML forms?
- Can we GROUP BY one column and select all data in MySQL?
- How do we upload external file on a website using HTML forms?
- HTML DOM forms collection
- How can we use group functions with non-group fields in MySQL SELECT query?
- How do we use a simple drop-down list of items in HTML forms?
- How to take user input using HTML forms?
- How to clear all the input in HTML forms?
- How to use the submit button in HTML forms?
- How to allow multiple file uploads in HTML forms.
Advertisements