컴퓨터

form 밖에서 연결하기

sayyesdoit 2019. 7. 24. 19:56
<!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>