Fieldset tag in HTML

Fieldset tag is mostly in forms ,this used for user understanding and grouping related details in a container box.

  • It tells the elements inside the box belongs to this category.
Fieldset tag is represented using <fieldset>  .

Fieldset tag
Fieldset tag

Code:

<!DOCTYPE html>
<html>
<head>
    <title>Fieldset tag</title>
</head>
<body>
    <form>
        <fieldset>
<legend>User info </legend>
            Mail-Id:<input type="email"> <br> <br> Username:
            <input type="text"><br> <br>password:
            <input type="password"><br><br>
            <input type="submit">
        </fieldset>
    </form>
</body>
</html>


Output:

Use of fieldset making a box around .

fieldset tag in html




Post a Comment

Post a Comment (0)

Previous Post Next Post