How to display a fieldset in HTML?

WBOY
Release: 2023-09-04 11:53:03
forward
1237 people have browsed it

How to display a fieldset in HTML?

HTML

Tags are used to group related form elements and display sets of fields. By using fieldset tags and legend tags, you can make your forms easier for users to understand.

Example

You can try running the following code to display the fieldset in HTML -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML fieldset Tag</title>
   </head>
   <body>
      <form>
         <fieldset>
            <legend>Details</legend>
            Student ID: <input type = "number"><br />
            Subjects:<input type = "text"><br />
         </fieldset>
      </form>
   </body>
</html>
Copy after login

The above is the detailed content of How to display a fieldset in HTML?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template