| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ko/docs/Web/HTML/Reference/Elements/form#method | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 7.
HTML <form> .
<form action="" method="get" class="form-example">
<div class="form-example">
<label for="name">Enter your name: </label>
<input type="text" name="name" id="name" required />
</div>
<div class="form-example">
<label for="email">Enter your email: </label>
<input type="email" name="email" id="email" required />
</div>
<div class="form-example">
<input type="submit" value="Subscribe!" />
</div>
</form>
form.form-example {
display: table;
}
div.form-example {
display: table-row;
}
label,
input {
display: table-cell;
margin-bottom: 10px;
}
label {
padding-right: 10px;
}
<form> , elements CSS :valid :invalid .
| , . | |
<form>
.
|
|
| , . | |
| . | |
| ARIA |
group, presentation
|
| DOM | HTMLFormElement |
accept A comma-separated list of content types that the server accepts.
accept-charsetaction URI. <button>, <input type="submit">, <input type="image"> formaction .
autocapitalize . iOS Safari . autocapitalize <form> .
none: .sentences: . .words: .characters: .autocomplete . autocomplete <form> .
off: . ( )on: .enctypemethod post , enctype MIME .
application/x-www-form-urlencoded: .multipart/form-data: <input type="file"> .text/plain: HTML 5 .<button>, <input type="submit">, <input type="image"> formenctype .
methodHTTP .
<button>, <input type="submit">, <input type="image"> formmethod .
name . HTML 4 . id .
novalidate . novalidate ( ) <button>, <input type="submit">, <input type="image"> formnovalidate .
target . (, , <iframe>) . , target . .
_self: . ._blank: . , ._parent: . _self ._top: ( , ) . _self .<button>, <input type="submit">, <input type="image"> formtarget .
<!-- Form which will send a GET request to the current URL -->
<form>
<label
>Name:
<input name="submitted-name" autocomplete="name" />
</label>
<button>Save</button>
</form>
<!-- Form which will send a POST request to the current URL -->
<form method="post">
<label
>Name:
<input name="submitted-name" autocomplete="name" />
</label>
<button>Save</button>
</form>
<!-- Form with fieldset, legend, and label -->
<form method="post">
<fieldset>
<legend>Title</legend>
<label><input type="radio" name="radio" /> Select me</label>
</fieldset>
</form>
| Specification |
|---|
| HTML # the-form-element |
This page was last modified on 2026 4 15 by MDN contributors.
<a><abbr><acronym><address><area><article><aside><audio><b><base><bdi><bdo><big><blockquote><body><br><button><canvas><caption><center><cite><code><col><colgroup><data><datalist><dd><del><details><dfn><dialog><dir><div><dl><dt><em><embed><fencedframe><fieldset><figcaption><figure><font><footer><form><frame><frameset><geolocation><h1><head><header><hgroup><hr><html><i><iframe><img><input><ins><kbd><label><legend><li><link><main><map><mark><marquee><menu><meta><meter><nav><nobr><noembed><noframes><noscript><object><ol><optgroup><option><output><p><param><picture><plaintext><pre><progress><q><rb><rp><rt><rtc><ruby><s><samp><script><search><section><select><selectedcontent><slot><small><source><span><strike><strong><style><sub><summary><sup><table><tbody><td><template><textarea><tfoot><th><thead><time><title><tr><track><tt><u><ul><var><video><wbr><xmp><input> types<input type="button"><input type="checkbox"><input type="color"><input type="date"><input type="datetime-local"><input type="email"><input type="file"><input type="hidden"><input type="image"><input type="month"><input type="number"><input type="password"><input type="radio"><input type="range"><input type="reset"><input type="search"><input type="submit"><input type="tel"><input type="text"><input type="time"><input type="url"><input type="week"><script type>Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |