HTML <fieldset> 이름 속성
예시
이름 속성이 있는 <fieldset>:
<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>
정의 및 사용
속성은 필드 세트 의 name
이름을 지정합니다.
속성은 JavaScript 의 name
요소를 참조하거나 양식이 제출된 후 양식 데이터를 참조하는 데 사용됩니다.
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
name | Yes | 11.0 | Yes | Yes | Yes |
통사론
<fieldset name="text">
속성 값
Value | Description |
---|---|
name | Specifies the name of the fieldset |
❮ HTML <fieldset> 태그