| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/HTML/Reference/Elements/form | [Back] [Original] |
Get to know MDN better
<form action="" method="get" class="form-example">
<div class="form-example">
<label for="name">: </label>
<input type="text" name="name" id="name" required />
</div>
<div class="form-example">
<label for="email">: </label>
<input type="email" name="email" id="email" required />
</div>
<div class="form-example">
<input type="submit" value="!" />
</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;
}
accept :
<input type=file> accept
accept-charsetautocapitalizeautocompleteinput autocomplete <form>
off: autocomplete on: namerel externalnofollowopenernoopenernoreferrer helpprevnextsearchlicense rel
action URL <button><input type="submit"><input type="image"> formaction method="dialog"
enctypemethod post MIME
application/x-www-form-urlencoded: multipart/form-data: <input> type=file text/plain: <button><input type="submit"><input type="image"> formenctype
methodHTTP /
<button><input type="submit"><input type="image"> formmethod
novalidate <button><input type="submit"><input type="image"> formnovalidate
target
_self: _blank: rel="noopener" window.opener _parent: _self _top: _self _unfencedTop: <button><input type="submit"><input type="image"> formtarget
<!-- URL GET -->
<form method="get">
<label>
Name:
<input name="submitted-name" autocomplete="name" />
</label>
<button>Save</button>
</form>
<!-- URL POST -->
<form method="post">
<label>
Name:
<input name="submitted-name" autocomplete="name" />
</label>
<button>Save</button>
</form>
<!-- fieldset, legend, label -->
<form method="post">
<fieldset>
<legend>Do you agree to the terms?</legend>
<label><input type="radio" name="radio" value="yes" /> Yes</label>
<label><input type="radio" name="radio" value="no" /> No</label>
</fieldset>
</form>
<form> |
|
| ARIA |
form
|
| ARIA |
search,
none,
presentation
|
| DOM | HTMLFormElement |
| HTML # the-form-element |
<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><h6><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>accesskeyanchorautocapitalizeautocorrectautofocusclasscontainertimingcontainertimingignorecontenteditabledata-*dirdraggableenterkeyhintexportpartsheadingoffsetheadingresethiddenidinertinputmodeisitemiditempropitemrefitemscopeitemtypelangnoncepartpopoverslotspellcheckstyletabindextitletranslatevirtualkeyboardpolicywritingsuggestions<input> <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> | Web Proxy Viewer | New URL | Original Page |