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 />
Updated on 27-May-2020 20:52:51