<!DOCTYPE html>
<html>
<body>
<h2>The form Attribute</h2>
<p>The form attribute specifies one or more forms an input element belongs to.</p>
<form action="/action_page.php" id="form1">
First name: <input type="text" name="fname"><br>
<input type="submit" value="Submit">
</form>
<p>The "Last name" field below is outside the form element, but still part of the form.</p>
Last name: <input type="text" name="lname" form="form1">
</body>
</html>
'컴퓨터' 카테고리의 다른 글
폰트 설정하기 (0) | 2019.07.31 |
---|---|
checkValidity() 유효성 검사 (0) | 2019.07.24 |
미디어 쿼리 (0) | 2019.07.23 |
display 속성 변경하기 (0) | 2019.07.17 |
button submit 막기 (0) | 2019.07.13 |