Yahoo India Web Search

Search results

  1. Example. Group related elements in a form: <form action="/action_page.php">. <fieldset>. <legend> Personalia: </legend>. <label for="fname"> First name: </label>. <input type="text" id="fname" name="fname"><br><br>. <label for="lname"> Last name: </label>. <input type="text" id="lname" name="lname"><br><br>.

    • HTML Label Tag

      W3Schools offers free online tutorials, references and...

    • HTML Map Tag

      W3Schools offers free online tutorials, references and...

  2. Jan 30, 2024 · Learn how to use the legend tag to define the title for the child elements in HTML. See examples, syntax, attributes, and supported browsers for this tag.

  3. Feb 22, 2024 · <legend>: The Field Set Legend element - HTML: HyperText Markup Language | MDN. The <legend> HTML element represents a caption for the content of its parent <fieldset>. Try it. Attributes. This element only includes the global attributes. Examples. See <form> for examples on <legend>. Technical summary. Specifications. Browser compatibility.

  4. html.com › tags › legend<legend> HTML Tag

    Learn how to use the HTML tag to add captions to groups of related form elements in HTML. See code examples, browser support, and attributes of the tag.

  5. Sep 25, 2023 · Learn how to use the HTML tag to provide captions for groups of related form elements. See examples, attributes, common mistakes, and tips for improving accessibility and usability.

  6. People also ask

  7. HTML <legend> tag is used to specify the caption of <fieldset> element. It typically rests on top of the frame because it is a caption. A border is drawn around an element's content using the <fieldset> tag on that border we can set the caption using the <legend> tag.

  1. People also search for