A <fieldset> with a name attribute.
The name
attribute specifies a name for a fieldset.
The name
attribute is used to reference elements in a JavaScript, or to reference form data after a form is submitted.
<fieldset name="text">
Value | Description |
---|---|
name | Specifies the name of the fieldset |
Example:
HTML
<form action="/action_page.php" method="get">
<fieldset name="personalia">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname">
</fieldset>
<br>
<button type="button"
onclick="form.personalia.style.backgroundColor='yellow'">
Change background color of fieldset</button>
<input type="submit">
</form>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |