Answers for "why fieldset is used in html"

13

what is a fieldset html

The <fieldset> is a tool for organizing and grouping related 
items within a form. (Mostly visual for the reader).
 
 <form>
  <fieldset>

    <input type="radio" id="kraken" name="monster">
    <label for="kraken">Kraken</label>

    <input type="radio" id="sasquatch" name="monster">
    <label for="sasquatch">Sasquatch</label>

  </fieldset>
</form>
Posted by: Guest on April-04-2020
0

how to put a name on a fieldset

<!--To put a name on a fieldset, simply use the "legend" tag.-->
<fieldset>
  <legend>fieldset name</legend>
</fieldset>
Posted by: Guest on August-02-2020

Browse Popular Code Answers by Language