How to display a fieldset in HTML?

HTMLWeb DevelopmentFront End Technology

The HTML <fieldset> tag is used for grouping related form elements and display fieldset. By using the fieldset tag and the legend tag, you can make your forms much easier to understand for your users.


You can try to run the following code to display a fieldset in HTML −

<!DOCTYPE html>
      <title>HTML fieldset Tag</title>
            Student ID: <input type = "number"><br />
            Subjects:<input type = "text"><br />
Published on 13-Mar-2018 07:09:33