the-input-element.html 94.7 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-US-x-Hixie" ><head><title>4.10.7 The input element &#8212; HTML5 </title><style type="text/css">
   pre { margin-left: 2em; white-space: pre-wrap; }
   h2 { margin: 3em 0 1em 0; }
   h3 { margin: 2.5em 0 1em 0; }
   h4 { margin: 2.5em 0 0.75em 0; }
   h5, h6 { margin: 2.5em 0 1em; }
   h1 + h2, h1 + h2 + h2 { margin: 0.75em 0 0.75em; }
   h2 + h3, h3 + h4, h4 + h5, h5 + h6 { margin-top: 0.5em; }
   p { margin: 1em 0; }
   hr:not(.top) { display: block; background: none; border: none; padding: 0; margin: 2em 0; height: auto; }
   dl, dd { margin-top: 0; margin-bottom: 0; }
   dt { margin-top: 0.75em; margin-bottom: 0.25em; clear: left; }
   dt + dt { margin-top: 0; }
   dd dt { margin-top: 0.25em; margin-bottom: 0; }
   dd p { margin-top: 0; }
   dd dl + p { margin-top: 1em; }
   dd table + p { margin-top: 1em; }
   p + * > li, dd li { margin: 1em 0; }
   dt, dfn { font-weight: bold; font-style: normal; }
   dt dfn { font-style: italic; }
   pre, code { font-size: inherit; font-family: monospace; font-variant: normal; }
   pre strong { color: black; font: inherit; font-weight: bold; background: yellow; }
   pre em { font-weight: bolder; font-style: normal; }
   @media screen { code { color: orangered; } code :link, code :visited { color: inherit; } }
   var sub { vertical-align: bottom; font-size: smaller; position: relative; top: 0.1em; }
   table { border-collapse: collapse; border-style: hidden hidden none hidden; }
   table thead, table tbody { border-bottom: solid; }
   table tbody th:first-child { border-left: solid; }
   table tbody th { text-align: left; }
   table td, table th { border-left: solid; border-right: solid; border-bottom: solid thin; vertical-align: top; padding: 0.2em; }
   blockquote { margin: 0 0 0 2em; border: 0; padding: 0; font-style: italic; }

   .bad, .bad *:not(.XXX) { color: gray; border-color: gray; background: transparent; }
   .matrix, .matrix td { border: none; text-align: right; }
   .matrix { margin-left: 2em; }
   .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
   .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
   .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }

   .toc dfn, h1 dfn, h2 dfn, h3 dfn, h4 dfn, h5 dfn, h6 dfn { font: inherit; }
   img.extra { float: right; }
   pre.idl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; }
   pre.idl :link, pre.idl :visited { color: inherit; background: transparent; }
   pre.css { border: solid thin; background: #FFFFEE; color: black; padding: 0.5em 1em; }
   pre.css:first-line { color: #AAAA50; }
   dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #DDFFDD; }
   hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
   dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
   dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
   dl.domintro dd p { margin: 0.5em 0; }
   dl.switch { padding-left: 2em; }
   dl.switch > dt { text-indent: -1.5em; }
   dl.switch > dt:before { content: '\21AA'; padding: 0 0.5em 0 0; display: inline-block; width: 1em; text-align: right; line-height: 0.5em; }
   dl.triple { padding: 0 0 0 1em; }
   dl.triple dt, dl.triple dd { margin: 0; display: inline }
   dl.triple dt:after { content: ':'; }
   dl.triple dd:after { content: '\A'; white-space: pre; }
   .diff-old { text-decoration: line-through; color: silver; background: transparent; }
   .diff-chg, .diff-new { text-decoration: underline; color: green; background: transparent; }
   a .diff-new { border-bottom: 1px blue solid; }

   h2 { page-break-before: always; }
   h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
   h1 + h2, hr + h2.no-toc { page-break-before: auto; }

   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }

   div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
   div.head p { margin: 0; }
   div.head h1 { margin: 0; }
   div.head .logo { float: right; margin: 0 1em; }
   div.head .logo img { border: none } /* remove border from top image */
   div.head dl { margin: 1em 0; }
   div.head p.copyright, div.head p.alt { font-size: x-small; font-style: oblique; margin: 0; }

   body > .toc > li { margin-top: 1em; margin-bottom: 1em; }
   body > .toc.brief > li { margin-top: 0.35em; margin-bottom: 0.35em; }
   body > .toc > li > * { margin-bottom: 0.5em; }
   body > .toc > li > * > li > * { margin-bottom: 0.25em; }
   .toc, .toc li { list-style: none; }

   .brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
   .brief li { margin: 0; padding: 0; }
   .brief li p { margin: 0; padding: 0; }

   .category-list { margin-top: -0.75em; margin-bottom: 1em; line-height: 1.5; }
   .category-list::before { content: '\21D2\A0'; font-size: 1.2em; font-weight: 900; }
   .category-list li { display: inline; }
   .category-list li:not(:last-child)::after { content: ', '; }
   .category-list li > span, .category-list li > a { text-transform: lowercase; }
   .category-list li * { text-transform: none; } /* don't affect <code> nested in <a> */

   .XXX { color: #E50000; background: white; border: solid red; padding: 0.5em; margin: 1em 0; }
   .XXX > :first-child { margin-top: 0; }
   p .XXX { line-height: 3em; }
   .annotation { border: solid thin black; background: #0C479D; color: white; position: relative; margin: 8px 0 20px 0; }
   .annotation:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 6px -6px -6px 6px; background: #333333; z-index: -1; content: ''; }
   .annotation :link, .annotation :visited { color: inherit; }
   .annotation :link:hover, .annotation :visited:hover { background: transparent; }
   .annotation span { border: none ! important; }
   .note { color: green; background: transparent; font-family: sans-serif; }
   .warning { color: red; background: transparent; }
   .note, .warning { font-weight: bolder; font-style: italic; }
   p.note, div.note { padding: 0.5em 2em; }
   span.note { padding: 0 2em; }
   .note p:first-child, .warning p:first-child { margin-top: 0; }
   .note p:last-child, .warning p:last-child { margin-bottom: 0; }
   .warning:before { font-style: normal; }
   p.note:before { content: 'Note: '; }
   p.warning:before { content: '\26A0 Warning! '; }

   .bookkeeping:before { display: block; content: 'Bookkeeping details'; font-weight: bolder; font-style: italic; }
   .bookkeeping { font-size: 0.8em; margin: 2em 0; }
   .bookkeeping p { margin: 0.5em 2em; display: list-item; list-style: square; }
   .bookkeeping dt { margin: 0.5em 2em 0; }
   .bookkeeping dd { margin: 0 3em 0.5em; }

   h4 { position: relative; z-index: 3; }
   h4 + .element, h4 + div + .element { margin-top: -2.5em; padding-top: 2em; }
   .element {
     background: #EEEEFF;
     color: black;
     margin: 0 0 1em 0.15em;
     padding: 0 1em 0.25em 0.75em;
     border-left: solid #9999FF 0.25em;
     position: relative;
     z-index: 1;
   }
   .element:before {
     position: absolute;
     z-index: 2;
     top: 0;
     left: -1.15em;
     height: 2em;
     width: 0.9em;
     background: #EEEEFF;
     content: ' ';
     border-style: none none solid solid;
     border-color: #9999FF;
     border-width: 0.25em;
   }

   .example { display: block; color: #222222; background: #FCFCFC; border-left: double; margin-left: 2em; padding-left: 1em; }
   td > .example:only-child { margin: 0 0 0 0.1em; }

   ul.domTree, ul.domTree ul { padding: 0 0 0 1em; margin: 0; }
   ul.domTree li { padding: 0; margin: 0; list-style: none; position: relative; }
   ul.domTree li li { list-style: none; }
   ul.domTree li:first-child::before { position: absolute; top: 0; height: 0.6em; left: -0.75em; width: 0.5em; border-style: none none solid solid; content: ''; border-width: 0.1em; }
   ul.domTree li:not(:last-child)::after { position: absolute; top: 0; bottom: -0.6em; left: -0.75em; width: 0.5em; border-style: none none solid solid; content: ''; border-width: 0.1em; }
   ul.domTree span { font-style: italic; font-family: serif; }
   ul.domTree .t1 code { color: purple; font-weight: bold; }
   ul.domTree .t2 { font-style: normal; font-family: monospace; }
   ul.domTree .t2 .name { color: black; font-weight: bold; }
   ul.domTree .t2 .value { color: blue; font-weight: normal; }
   ul.domTree .t3 code, .domTree .t4 code, .domTree .t5 code { color: gray; }
   ul.domTree .t7 code, .domTree .t8 code { color: green; }
   ul.domTree .t10 code { color: teal; }

   body.dfnEnabled dfn { cursor: pointer; }
   .dfnPanel {
     display: inline;
     position: absolute;
     z-index: 10;
     height: auto;
     width: auto;
     padding: 0.5em 0.75em;
     font: small sans-serif, Droid Sans Fallback;
     background: #DDDDDD;
     color: black;
     border: outset 0.2em;
   }
   .dfnPanel * { margin: 0; padding: 0; font: inherit; text-indent: 0; }
   .dfnPanel :link, .dfnPanel :visited { color: black; }
   .dfnPanel p { font-weight: bolder; }
   .dfnPanel * + p { margin-top: 0.25em; }
   .dfnPanel li { list-style-position: inside; }

   #configUI { position: absolute; z-index: 20; top: 10em; right: 1em; width: 11em; font-size: small; }
   #configUI p { margin: 0.5em 0; padding: 0.3em; background: #EEEEEE; color: black; border: inset thin; }
   #configUI p label { display: block; }
   #configUI #updateUI, #configUI .loginUI { text-align: center; }
   #configUI input[type=button] { display: block; margin: auto; }

   fieldset { margin: 1em; padding: 0.5em 1em; }
   fieldset > legend + * { margin-top: 0; }
   fieldset > :last-child { margin-bottom: 0; }
   fieldset p { margin: 0.5em 0; }

   .stability {
     position: fixed;
     bottom: 0;
     left: 0; right: 0;
     margin: 0 auto 0 auto !important;
    z-index: 1000;
     width: 50%;
     background: maroon; color: yellow;
     -webkit-border-radius: 1em 1em 0 0;
     -moz-border-radius: 1em 1em 0 0;
     border-radius: 1em 1em 0 0;
     -moz-box-shadow: 0 0 1em #500;
     -webkit-box-shadow: 0 0 1em #500;
     box-shadow: 0 0 1em red;
     padding: 0.5em 1em;
     text-align: center;
   }
   .stability strong {
     display: block;
   }
   .stability input {
     appearance: none; margin: 0; border: 0; padding: 0.25em 0.5em; background: transparent; color: black;
     position: absolute; top: -0.5em; right: 0; font: 1.25em sans-serif; text-align: center;
   }
   .stability input:hover {
     color: white;
     text-shadow: 0 0 2px black;
   }
   .stability input:active {
     padding: 0.3em 0.45em 0.2em 0.55em;
   }
   .stability :link, .stability :visited,
   .stability :link:hover, .stability :visited:hover {
     background: transparent;
     color: white;
   }

  </style><link href="data:text/css,.impl%20%7B%20display:%20none;%20%7D%0Ahtml%20%7B%20border:%20solid%20yellow;%20%7D%20.domintro:before%20%7B%20display:%20none;%20%7D" id="author" rel="alternate stylesheet" title="Author documentation only"><link href="data:text/css,.impl%20%7B%20background:%20%23FFEEEE;%20%7D%20.domintro:before%20%7B%20background:%20%23FFEEEE;%20%7D" id="highlight" rel="alternate stylesheet" title="Highlight implementation
requirements"><link href="http://www.w3.org/StyleSheets/TR/W3C-WD" rel="stylesheet" type="text/css"><style type="text/css">

   .applies thead th > * { display: block; }
   .applies thead code { display: block; }
   .applies tbody th { whitespace: nowrap; }
   .applies td { text-align: center; }
   .applies .yes { background: yellow; }

   .matrix, .matrix td { border: hidden; text-align: right; }
   .matrix { margin-left: 2em; }

   .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
   .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
   .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }

   td.eg { border-width: thin; text-align: center; }

   #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
   #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
   #table-example-1 caption { padding-bottom: 0.5em; }
   #table-example-1 thead, #table-example-1 tbody { border: none; }
   #table-example-1 th, #table-example-1 td { border: solid thin; }
   #table-example-1 th { font-weight: normal; }
   #table-example-1 td { border-style: none solid; vertical-align: top; }
   #table-example-1 th { padding: 0.5em; vertical-align: middle; text-align: center; }
   #table-example-1 tbody tr:first-child td { padding-top: 0.5em; }
   #table-example-1 tbody tr:last-child td { padding-bottom: 1.5em; }
   #table-example-1 tbody td:first-child { padding-left: 2.5em; padding-right: 0; width: 9em; }
   #table-example-1 tbody td:first-child::after { content: leader(". "); }
   #table-example-1 tbody td { padding-left: 2em; padding-right: 2em; }
   #table-example-1 tbody td:first-child + td { width: 10em; }
   #table-example-1 tbody td:first-child + td ~ td { width: 2.5em; }
   #table-example-1 tbody td:first-child + td + td + td ~ td { width: 1.25em; }

   .apple-table-examples { border: none; border-collapse: separate; border-spacing: 1.5em 0em; width: 40em; margin-left: 3em; }
   .apple-table-examples * { font-family: "Times", serif; }
   .apple-table-examples td, .apple-table-examples th { border: none; white-space: nowrap; padding-top: 0; padding-bottom: 0; }
   .apple-table-examples tbody th:first-child { border-left: none; width: 100%; }
   .apple-table-examples thead th:first-child ~ th { font-size: smaller; font-weight: bolder; border-bottom: solid 2px; text-align: center; }
   .apple-table-examples tbody th::after, .apple-table-examples tfoot th::after { content: leader(". ") }
   .apple-table-examples tbody th, .apple-table-examples tfoot th { font: inherit; text-align: left; }
   .apple-table-examples td { text-align: right; vertical-align: top; }
   .apple-table-examples.e1 tbody tr:last-child td { border-bottom: solid 1px; }
   .apple-table-examples.e1 tbody + tbody tr:last-child td { border-bottom: double 3px; }
   .apple-table-examples.e2 th[scope=row] { padding-left: 1em; }
   .apple-table-examples sup { line-height: 0; }

   .details-example img { vertical-align: top; }

   #base64-table {
     white-space: nowrap;
     font-size: 0.6em;
     column-width: 6em;
     column-count: 5;
     column-gap: 1em;
     -moz-column-width: 6em;
     -moz-column-count: 5;
     -moz-column-gap: 1em;
     -webkit-column-width: 6em;
     -webkit-column-count: 5;
     -webkit-column-gap: 1em;
   }
   #base64-table thead { display: none; }
   #base64-table * { border: none; }
   #base64-table tbody td:first-child:after { content: ':'; }
   #base64-table tbody td:last-child { text-align: right; }

   #named-character-references-table {
     white-space: nowrap;
     font-size: 0.6em;
     column-width: 30em;
     column-gap: 1em;
     -moz-column-width: 30em;
     -moz-column-gap: 1em;
     -webkit-column-width: 30em;
     -webkit-column-gap: 1em;
   }
   #named-character-references-table > table > tbody > tr > td:first-child + td,
   #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
   #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }

   .glyph.control { color: red; }

   @font-face {
     font-family: 'Essays1743';
     src: url('http://www.whatwg.org/specs/web-apps/current-work/fonts/Essays1743.ttf');
   }
   @font-face {
     font-family: 'Essays1743';
     font-weight: bold;
     src: url('http://www.whatwg.org/specs/web-apps/current-work/fonts/Essays1743-Bold.ttf');
   }
   @font-face {
     font-family: 'Essays1743';
     font-style: italic;
     src: url('http://www.whatwg.org/specs/web-apps/current-work/fonts/Essays1743-Italic.ttf');
   }
   @font-face {
     font-family: 'Essays1743';
     font-style: italic;
     font-weight: bold;
     src: url('http://www.whatwg.org/specs/web-apps/current-work/fonts/Essays1743-BoldItalic.ttf');
   }

  </style><style type="text/css">
   .domintro:before { display: table; margin: -1em -0.5em -0.5em auto; width: auto; content: 'This box is non-normative. Implementation requirements are given below this box.'; color: black; font-style: italic; border: solid 2px; background: white; padding: 0 0.25em; }
  </style><script type="text/javascript">
   function getCookie(name) {
     var params = location.search.substr(1).split("&");
     for (var index = 0; index < params.length; index++) {
       if (params[index] == name)
         return "1";
       var data = params[index].split("=");
       if (data[0] == name)
         return unescape(data[1]);
     }
     var cookies = document.cookie.split("; ");
     for (var index = 0; index < cookies.length; index++) {
       var data = cookies[index].split("=");
       if (data[0] == name)
         return unescape(data[1]);
     }
     return null;
   }
  </script>
  <script src="link-fixup.js" type="text/javascript"></script>
  <link href="style.css" rel="stylesheet"><link href="forms.html" title="4.10 Forms" rel="prev">
  <link href="spec.html#contents" title="Table of contents" rel="index">
  <link href="states-of-the-type-attribute.html" title="4.10.7.1 States of the type attribute" rel="next">
  </head><body><div class="head" id="head">
<div id="multipage-common">
  <p class="stability" id="wip"><strong>This is a work in
  progress!</strong> For the latest updates from the HTML WG, possibly
  including important bug fixes, please look at the <a href="http://dev.w3.org/html5/spec/Overview.html">editor's draft</a> instead.
  There may also be a more
  <a href="http://www.w3.org/TR/html5">up-to-date Working Draft</a>
   with changes based on resolution of Last Call issues.
  <input onclick="closeWarning(this.parentNode)" type="button" value="&#9587;&#8413;"></p>
  <script type="text/javascript">
   function closeWarning(element) {
     element.parentNode.removeChild(element);
     var date = new Date();
     date.setDate(date.getDate()+4);
     document.cookie = 'hide-obsolescence-warning=1; expires=' + date.toGMTString();
   }
   if (getCookie('hide-obsolescence-warning') == '1')
     setTimeout(function () { document.getElementById('wip').parentNode.removeChild(document.getElementById('wip')); }, 2000);
  </script></div>

   <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>

   <h1>HTML5</h1>
   </div><div>
   <a href="forms.html" class="prev">4.10 Forms</a> &#8211;
   <a href="spec.html#contents">Table of contents</a> &#8211;
   <a href="states-of-the-type-attribute.html" class="next">4.10.7.1 States of the type attribute</a>
  </div>

  <h4 id="the-input-element"><span class="secno">4.10.7 </span>The <dfn><code>input</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
   <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
   <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
   <dd>If the <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is <em>not</em> in the <a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state: <a href="content-models.html#interactive-content">Interactive content</a>.</dd>
   <dd>If the <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is <em>not</em> in the <a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state: <a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-label" title="category-label">labelable</a>, <a href="forms.html#category-submit" title="category-submit">submittable</a>, and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
   <dd>If the <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is in the <a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state: <a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-submit" title="category-submit">submittable</a>, and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
   <dt>Contexts in which this element can be used:</dt>
   <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
   <dt>Content model:</dt>
   <dd>Empty.</dd>
   <dt>Content attributes:</dt>
   <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
   <dd><code title="attr-input-accept"><a href="number-state.html#attr-input-accept">accept</a></code></dd>
   <dd><code title="attr-input-alt"><a href="number-state.html#attr-input-alt">alt</a></code></dd>
   <dd><code title="attr-input-autocomplete"><a href="common-input-element-attributes.html#attr-input-autocomplete">autocomplete</a></code></dd>
   <dd><code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code></dd>
   <dd><code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code></dd>
   <dd><code title="attr-input-dirname"><a href="common-input-element-attributes.html#attr-input-dirname">dirname</a></code></dd>
   <dd><code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code></dd>
   <dd><code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code></dd>
   <dd><code title="attr-fs-formaction"><a href="association-of-controls-and-forms.html#attr-fs-formaction">formaction</a></code></dd>
   <dd><code title="attr-fs-formenctype"><a href="association-of-controls-and-forms.html#attr-fs-formenctype">formenctype</a></code></dd>
   <dd><code title="attr-fs-formmethod"><a href="association-of-controls-and-forms.html#attr-fs-formmethod">formmethod</a></code></dd>
   <dd><code title="attr-fs-formnovalidate"><a href="association-of-controls-and-forms.html#attr-fs-formnovalidate">formnovalidate</a></code></dd>
   <dd><code title="attr-fs-formtarget"><a href="association-of-controls-and-forms.html#attr-fs-formtarget">formtarget</a></code></dd>
   <dd><code title="attr-dim-height"><a href="the-map-element.html#attr-dim-height">height</a></code></dd>
   <dd><code title="attr-input-list"><a href="common-input-element-attributes.html#attr-input-list">list</a></code></dd>
   <dd><code title="attr-input-max"><a href="common-input-element-attributes.html#attr-input-max">max</a></code></dd>
   <dd><code title="attr-input-maxlength"><a href="common-input-element-attributes.html#attr-input-maxlength">maxlength</a></code></dd>
   <dd><code title="attr-input-min"><a href="common-input-element-attributes.html#attr-input-min">min</a></code></dd>
   <dd><code title="attr-input-multiple"><a href="common-input-element-attributes.html#attr-input-multiple">multiple</a></code></dd>
   <dd><code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code></dd>
   <dd><code title="attr-input-pattern"><a href="common-input-element-attributes.html#attr-input-pattern">pattern</a></code></dd>
   <dd><code title="attr-input-placeholder"><a href="common-input-element-attributes.html#attr-input-placeholder">placeholder</a></code></dd>
   <dd><code title="attr-input-readonly"><a href="common-input-element-attributes.html#attr-input-readonly">readonly</a></code></dd>
   <dd><code title="attr-input-required"><a href="common-input-element-attributes.html#attr-input-required">required</a></code></dd>
   <dd><code title="attr-input-size"><a href="common-input-element-attributes.html#attr-input-size">size</a></code></dd>
   <dd><code title="attr-input-src"><a href="number-state.html#attr-input-src">src</a></code></dd>
   <dd><code title="attr-input-step"><a href="common-input-element-attributes.html#attr-input-step">step</a></code></dd>
   <dd><code title="attr-input-type"><a href="#attr-input-type">type</a></code></dd>
   <dd><code title="attr-input-value"><a href="#attr-input-value">value</a></code></dd>
   <dd><code title="attr-dim-width"><a href="the-map-element.html#attr-dim-width">width</a></code></dd>
   <dt>DOM interface:</dt>
   <dd>
<pre class="idl">interface <dfn id="htmlinputelement">HTMLInputElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
           attribute DOMString <a href="#dom-input-accept" title="dom-input-accept">accept</a>;
           attribute DOMString <a href="#dom-input-alt" title="dom-input-alt">alt</a>;
           attribute DOMString <a href="#dom-input-autocomplete" title="dom-input-autocomplete">autocomplete</a>;
           attribute boolean <a href="association-of-controls-and-forms.html#dom-fe-autofocus" title="dom-fe-autofocus">autofocus</a>;
           attribute boolean <a href="#dom-input-defaultchecked" title="dom-input-defaultChecked">defaultChecked</a>;
           attribute boolean <a href="common-input-element-attributes.html#dom-input-checked" title="dom-input-checked">checked</a>;
           attribute DOMString <a href="#dom-input-dirname" title="dom-input-dirName">dirName</a>;
           attribute boolean <a href="association-of-controls-and-forms.html#dom-fe-disabled" title="dom-fe-disabled">disabled</a>;
  readonly attribute <a href="forms.html#htmlformelement">HTMLFormElement</a> <a href="association-of-controls-and-forms.html#dom-fae-form" title="dom-fae-form">form</a>;
  readonly attribute <a href="infrastructure.html#filelist">FileList</a> <a href="common-input-element-attributes.html#dom-input-files" title="dom-input-files">files</a>;
           attribute DOMString <a href="association-of-controls-and-forms.html#dom-fs-formaction" title="dom-fs-formAction">formAction</a>;
           attribute DOMString <a href="association-of-controls-and-forms.html#dom-fs-formenctype" title="dom-fs-formEnctype">formEnctype</a>;
           attribute DOMString <a href="association-of-controls-and-forms.html#dom-fs-formmethod" title="dom-fs-formMethod">formMethod</a>;
           attribute boolean <a href="association-of-controls-and-forms.html#dom-fs-formnovalidate" title="dom-fs-formNoValidate">formNoValidate</a>;
           attribute DOMString <a href="association-of-controls-and-forms.html#dom-fs-formtarget" title="dom-fs-formTarget">formTarget</a>;
           attribute DOMString <a href="the-map-element.html#dom-dim-height" title="dom-dim-height">height</a>;
           attribute boolean <a href="#dom-input-indeterminate" title="dom-input-indeterminate">indeterminate</a>;
  readonly attribute <a href="elements.html#htmlelement">HTMLElement</a> <a href="common-input-element-attributes.html#dom-input-list" title="dom-input-list">list</a>;
           attribute DOMString <a href="#dom-input-max" title="dom-input-max">max</a>;
           attribute long <a href="#dom-input-maxlength" title="dom-input-maxLength">maxLength</a>;
           attribute DOMString <a href="#dom-input-min" title="dom-input-min">min</a>;
           attribute boolean <a href="#dom-input-multiple" title="dom-input-multiple">multiple</a>;
           attribute DOMString <a href="association-of-controls-and-forms.html#dom-fe-name" title="dom-fe-name">name</a>;
           attribute DOMString <a href="#dom-input-pattern" title="dom-input-pattern">pattern</a>;
           attribute DOMString <a href="#dom-input-placeholder" title="dom-input-placeholder">placeholder</a>;
           attribute boolean <a href="#dom-input-readonly" title="dom-input-readOnly">readOnly</a>;
           attribute boolean <a href="#dom-input-required" title="dom-input-required">required</a>;
           attribute unsigned long <a href="#dom-input-size" title="dom-input-size">size</a>;
           attribute DOMString <a href="#dom-input-src" title="dom-input-src">src</a>;
           attribute DOMString <a href="#dom-input-step" title="dom-input-step">step</a>;
           attribute DOMString <a href="#dom-input-type" title="dom-input-type">type</a>;
           attribute DOMString <a href="#dom-input-defaultvalue" title="dom-input-defaultValue">defaultValue</a>;
           attribute DOMString <a href="common-input-element-attributes.html#dom-input-value" title="dom-input-value">value</a>;
           attribute <span>Date</span> <a href="common-input-element-attributes.html#dom-input-valueasdate" title="dom-input-valueAsDate">valueAsDate</a>;
           attribute double <a href="common-input-element-attributes.html#dom-input-valueasnumber" title="dom-input-valueAsNumber">valueAsNumber</a>;
  readonly attribute <a href="the-button-element.html#htmloptionelement">HTMLOptionElement</a> <a href="common-input-element-attributes.html#dom-input-selectedoption" title="dom-input-selectedOption">selectedOption</a>;
           attribute DOMString <a href="the-map-element.html#dom-dim-width" title="dom-dim-width">width</a>;

  void <a href="common-input-element-attributes.html#dom-input-stepup" title="dom-input-stepUp">stepUp</a>(in optional long n);
  void <a href="common-input-element-attributes.html#dom-input-stepdown" title="dom-input-stepDown">stepDown</a>(in optional long n);

  readonly attribute boolean <a href="association-of-controls-and-forms.html#dom-cva-willvalidate" title="dom-cva-willValidate">willValidate</a>;
  readonly attribute <a href="association-of-controls-and-forms.html#validitystate">ValidityState</a> <a href="association-of-controls-and-forms.html#dom-cva-validity" title="dom-cva-validity">validity</a>;
  readonly attribute DOMString <a href="association-of-controls-and-forms.html#dom-cva-validationmessage" title="dom-cva-validationMessage">validationMessage</a>;
  boolean <a href="association-of-controls-and-forms.html#dom-cva-checkvalidatity" title="dom-cva-checkValidatity">checkValidity</a>();
  void <a href="association-of-controls-and-forms.html#dom-cva-setcustomvalidity" title="dom-cva-setCustomValidity">setCustomValidity</a>(in DOMString error);

  readonly attribute <a href="infrastructure.html#nodelist">NodeList</a> <a href="forms.html#dom-lfe-labels" title="dom-lfe-labels">labels</a>;

  void <a href="association-of-controls-and-forms.html#dom-textarea-input-select" title="dom-textarea/input-select">select</a>();
           attribute unsigned long <a href="association-of-controls-and-forms.html#dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart">selectionStart</a>;
           attribute unsigned long <a href="association-of-controls-and-forms.html#dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd">selectionEnd</a>;
           attribute DOMString <a href="association-of-controls-and-forms.html#dom-textarea-input-selectiondirection" title="dom-textarea/input-selectionDirection">selectionDirection</a>;
  void <a href="association-of-controls-and-forms.html#dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange">setSelectionRange</a>(in unsigned long start, in unsigned long end, in optional DOMString direction);
};</pre>
   </dd>
  </dl><p>The <code><a href="#the-input-element">input</a></code> element <a href="rendering.html#represents">represents</a> a typed data field,
  usually with a form control to allow the user to edit the data.</p><p>The <dfn id="attr-input-type" title="attr-input-type"><code>type</code></dfn>
  attribute controls the data type (and associated control) of the
  element. It is an <a href="common-microsyntaxes.html#enumerated-attribute">enumerated attribute</a>. The following
  table lists the keywords and states for the attribute &#8212; the
  keywords in the left column map to the states in the cell in the
  second column on the same row as the keyword.</p><table id="attr-input-type-keywords"><thead><tr><th> Keyword
     </th><th> State
     </th><th> Data type
     </th><th> Control type
   </th></tr></thead><tbody><tr><td> <dfn id="attr-input-type-hidden-keyword" title="attr-input-type-hidden-keyword"><code>hidden</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a>
     </td><td> An arbitrary string
     </td><td> n/a
    </td></tr><tr><td> <dfn id="attr-input-type-text-keyword" title="attr-input-type-text-keyword"><code>text</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#text-state-and-search-state" title="attr-input-type-text">Text</a>
     </td><td> Text with no line breaks
     </td><td> Text field
    </td></tr><tr><td> <dfn id="attr-input-type-search-keyword" title="attr-input-type-search-keyword"><code>search</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#text-state-and-search-state" title="attr-input-type-search">Search</a>
     </td><td> Text with no line breaks
     </td><td> Search field
    </td></tr><tr><td> <dfn id="attr-input-type-tel-keyword" title="attr-input-type-tel-keyword"><code>tel</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#telephone-state" title="attr-input-type-tel">Telephone</a>
     </td><td> Text with no line breaks
     </td><td> A text field
    </td></tr><tr><td> <dfn id="attr-input-type-url-keyword" title="attr-input-type-url-keyword"><code>url</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#url-state" title="attr-input-type-url">URL</a>
     </td><td> An absolute IRI
     </td><td> A text field
    </td></tr><tr><td> <dfn id="attr-input-type-email-keyword" title="attr-input-type-email-keyword"><code>email</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#e-mail-state" title="attr-input-type-email">E-mail</a>
     </td><td> An e-mail address or list of e-mail addresses
     </td><td> A text field
    </td></tr><tr><td> <dfn id="attr-input-type-password-keyword" title="attr-input-type-password-keyword"><code>password</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#password-state" title="attr-input-type-password">Password</a>
     </td><td> Text with no line breaks (sensitive information)
     </td><td> Text field that obscures data entry
    </td></tr><tr><td> <dfn id="attr-input-type-datetime-keyword" title="attr-input-type-datetime-keyword"><code>datetime</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#date-and-time-state" title="attr-input-type-datetime">Date and Time</a>
     </td><td> A date and time (year, month, day, hour, minute, second, fraction of a second) with the time zone set to UTC
     </td><td> A date and time control
    </td></tr><tr><td> <dfn id="attr-input-type-date-keyword" title="attr-input-type-date-keyword"><code>date</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#date-state" title="attr-input-type-date">Date</a>
     </td><td> A date (year, month, day) with no time zone
     </td><td> A date control
    </td></tr><tr><td> <dfn id="attr-input-type-month-keyword" title="attr-input-type-month-keyword"><code>month</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#month-state" title="attr-input-type-month">Month</a>
     </td><td> A date consisting of a year and a month with no time zone
     </td><td> A month control
    </td></tr><tr><td> <dfn id="attr-input-type-week-keyword" title="attr-input-type-week-keyword"><code>week</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#week-state" title="attr-input-type-week">Week</a>
     </td><td> A date consisting of a week-year number and a week number with no time zone
     </td><td> A week control
    </td></tr><tr><td> <dfn id="attr-input-type-time-keyword" title="attr-input-type-time-keyword"><code>time</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#time-state" title="attr-input-type-time">Time</a>
     </td><td> A time (hour, minute, seconds, fractional seconds) with no time zone
     </td><td> A time control
    </td></tr><tr><td> <dfn id="attr-input-type-datetime-local-keyword" title="attr-input-type-datetime-local-keyword"><code>datetime-local</code></dfn>
     </td><td> <a href="states-of-the-type-attribute.html#local-date-and-time-state" title="attr-input-type-datetime-local">Local Date and Time</a>
     </td><td> A date and time (year, month, day, hour, minute, second, fraction of a second) with no time zone
     </td><td> A date and time control
    </td></tr><tr><td> <dfn id="attr-input-type-number-keyword" title="attr-input-type-number-keyword"><code>number</code></dfn>
     </td><td> <a href="number-state.html#number-state" title="attr-input-type-number">Number</a>
     </td><td> A numerical value
     </td><td> A text field or spinner control
    </td></tr><tr><td> <dfn id="attr-input-type-range-keyword" title="attr-input-type-range-keyword"><code>range</code></dfn>
     </td><td> <a href="number-state.html#range-state" title="attr-input-type-range">Range</a>
     </td><td> A numerical value, with the extra semantic that the exact value is not important
     </td><td> A slider control or similar
    </td></tr><tr><td> <dfn id="attr-input-type-color-keyword" title="attr-input-type-color-keyword"><code>color</code></dfn>
     </td><td> <a href="number-state.html#color-state" title="attr-input-type-color">Color</a>
     </td><td> An sRGB color with 8-bit red, green, and blue components
     </td><td> A color well
    </td></tr><tr><td> <dfn id="attr-input-type-checkbox-keyword" title="attr-input-type-checkbox-keyword"><code>checkbox</code></dfn>
     </td><td> <a href="number-state.html#checkbox-state" title="attr-input-type-checkbox">Checkbox</a>
     </td><td> A set of zero or more values from a predefined list
     </td><td> A checkbox
    </td></tr><tr><td> <dfn id="attr-input-type-radio-keyword" title="attr-input-type-radio-keyword"><code>radio</code></dfn>
     </td><td> <a href="number-state.html#radio-button-state" title="attr-input-type-radio">Radio Button</a>
     </td><td> An enumerated value
     </td><td> A radio button
    </td></tr><tr><td> <dfn id="attr-input-type-file-keyword" title="attr-input-type-file-keyword"><code>file</code></dfn>
     </td><td> <a href="number-state.html#file-upload-state" title="attr-input-type-file">File Upload</a>
     </td><td> Zero or more files each with a <a href="infrastructure.html#mime-type">MIME type</a> and optionally a file name
     </td><td> A label and a button
    </td></tr><tr><td> <dfn id="attr-input-type-submit-keyword" title="attr-input-type-submit-keyword"><code>submit</code></dfn>
     </td><td> <a href="number-state.html#submit-button-state" title="attr-input-type-submit">Submit Button</a>
     </td><td> An enumerated value, with the extra semantic that it must be the last value selected and initiates form submission
     </td><td> A button
    </td></tr><tr><td> <dfn id="attr-input-type-image-keyword" title="attr-input-type-image-keyword"><code>image</code></dfn>
     </td><td> <a href="number-state.html#image-button-state" title="attr-input-type-image">Image Button</a>
     </td><td> A coordinate, relative to a particular image's size, with the extra semantic that it must be the last value selected and initiates form submission
     </td><td> Either a clickable image, or a button
    </td></tr><tr><td> <dfn id="attr-input-type-reset-keyword" title="attr-input-type-reset-keyword"><code>reset</code></dfn>
     </td><td> <a href="number-state.html#reset-button-state" title="attr-input-type-reset">Reset Button</a>
     </td><td> n/a
     </td><td> A button
    </td></tr><tr><td> <dfn id="attr-input-type-button-keyword" title="attr-input-type-button-keyword"><code>button</code></dfn>
     </td><td> <a href="number-state.html#button-state" title="attr-input-type-button">Button</a>
     </td><td> n/a
     </td><td> A button
  </td></tr></tbody></table><p>The <i>missing value default</i> is the <a href="states-of-the-type-attribute.html#text-state-and-search-state" title="attr-input-type-text">Text</a> state.</p><p>Which of the <code title="attr-input-accept"><a href="number-state.html#attr-input-accept">accept</a></code>, <code title="attr-input-alt"><a href="number-state.html#attr-input-alt">alt</a></code>, <code title="attr-input-autocomplete"><a href="common-input-element-attributes.html#attr-input-autocomplete">autocomplete</a></code>, <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code>, <code title="attr-input-dirname"><a href="common-input-element-attributes.html#attr-input-dirname">dirname</a></code>, <code title="attr-fs-formaction"><a href="association-of-controls-and-forms.html#attr-fs-formaction">formaction</a></code>, <code title="attr-fs-formenctype"><a href="association-of-controls-and-forms.html#attr-fs-formenctype">formenctype</a></code>, <code title="attr-fs-formmethod"><a href="association-of-controls-and-forms.html#attr-fs-formmethod">formmethod</a></code>, <code title="attr-fs-formnovalidate"><a href="association-of-controls-and-forms.html#attr-fs-formnovalidate">formnovalidate</a></code>, <code title="attr-fs-formtarget"><a href="association-of-controls-and-forms.html#attr-fs-formtarget">formtarget</a></code>, <code title="attr-dim-height"><a href="the-map-element.html#attr-dim-height">height</a></code>, <code title="attr-input-list"><a href="common-input-element-attributes.html#attr-input-list">list</a></code>, <code title="attr-input-max"><a href="common-input-element-attributes.html#attr-input-max">max</a></code>, <code title="attr-input-maxlength"><a href="common-input-element-attributes.html#attr-input-maxlength">maxlength</a></code>, <code title="attr-input-min"><a href="common-input-element-attributes.html#attr-input-min">min</a></code>, <code title="attr-input-multiple"><a href="common-input-element-attributes.html#attr-input-multiple">multiple</a></code>, <code title="attr-input-pattern"><a href="common-input-element-attributes.html#attr-input-pattern">pattern</a></code>, <code title="attr-input-placeholder"><a href="common-input-element-attributes.html#attr-input-placeholder">placeholder</a></code>, <code title="attr-input-readonly"><a href="common-input-element-attributes.html#attr-input-readonly">readonly</a></code>, <code title="attr-input-required"><a href="common-input-element-attributes.html#attr-input-required">required</a></code>, <code title="attr-input-size"><a href="common-input-element-attributes.html#attr-input-size">size</a></code>, <code title="attr-input-src"><a href="number-state.html#attr-input-src">src</a></code>, <code title="attr-input-step"><a href="common-input-element-attributes.html#attr-input-step">step</a></code>, and <code title="attr-dim-width"><a href="the-map-element.html#attr-dim-width">width</a></code> content attributes, the <code title="dom-input-checked"><a href="common-input-element-attributes.html#dom-input-checked">checked</a></code>, <code title="dom-input-files"><a href="common-input-element-attributes.html#dom-input-files">files</a></code>, <code title="dom-input-valueAsDate"><a href="common-input-element-attributes.html#dom-input-valueasdate">valueAsDate</a></code>, <code title="dom-input-valueAsNumber"><a href="common-input-element-attributes.html#dom-input-valueasnumber">valueAsNumber</a></code>, <code title="dom-input-list"><a href="common-input-element-attributes.html#dom-input-list">list</a></code>, and <code title="dom-input-selectedOption"><a href="common-input-element-attributes.html#dom-input-selectedoption">selectedOption</a></code> IDL
  attributes, the <code title="dom-textarea/input-select"><a href="association-of-controls-and-forms.html#dom-textarea-input-select">select()</a></code> method, the <code title="dom-textarea/input-selectionStart"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionstart">selectionStart</a></code>,
  <code title="dom-textarea/input-selectionEnd"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionend">selectionEnd</a></code>, and
  <code title="dom-textarea/input-selectionDirection"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectiondirection">selectionDirection</a></code>,
  IDL attributes, the <code title="dom-textarea/input-setSelectionRange"><a href="association-of-controls-and-forms.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
  method, the <code title="dom-input-stepUp"><a href="common-input-element-attributes.html#dom-input-stepup">stepUp()</a></code> and
  <code title="dom-input-stepDown"><a href="common-input-element-attributes.html#dom-input-stepdown">stepDown()</a></code> methods, and the
  <code title="event-input-input"><a href="common-input-element-attributes.html#event-input-input">input</a></code> and <code title="event-input-change"><a href="common-input-element-attributes.html#event-input-change">change</a></code> events apply to an
  <code><a href="#the-input-element">input</a></code> element depends on the state of its <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute.  The following table
  <span class="impl">is non-normative and</span> summarizes which of
  those content attributes, IDL attributes, methods, and events apply
  to each state:</p><table class="applies" id="input-type-attr-summary"><thead><tr><th>
     </th><th> <span title=""><a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a></span>
     </th><th> <span title=""><a href="states-of-the-type-attribute.html#text-state-and-search-state" title="attr-input-type-text">Text</a>,</span>
          <span title=""><a href="states-of-the-type-attribute.html#text-state-and-search-state" title="attr-input-type-search">Search</a></span>
     </th><th> <span title=""><a href="states-of-the-type-attribute.html#url-state" title="attr-input-type-url">URL</a>,</span>
          <span title=""><a href="states-of-the-type-attribute.html#telephone-state" title="attr-input-type-tel">Telephone</a></span>
     </th><th> <span title=""><a href="states-of-the-type-attribute.html#e-mail-state" title="attr-input-type-email">E-mail</a></span>
     </th><th> <span title=""><a href="states-of-the-type-attribute.html#password-state" title="attr-input-type-password">Password</a></span>
     </th><th> <span title=""><a href="states-of-the-type-attribute.html#date-and-time-state" title="attr-input-type-datetime">Date and Time</a>,</span>
          <span title=""><a href="states-of-the-type-attribute.html#date-state" title="attr-input-type-date">Date</a>,</span>
          <span title=""><a href="states-of-the-type-attribute.html#month-state" title="attr-input-type-month">Month</a>,</span>
          <span title=""><a href="states-of-the-type-attribute.html#week-state" title="attr-input-type-week">Week</a>,</span>
          <span title=""><a href="states-of-the-type-attribute.html#time-state" title="attr-input-type-time">Time</a></span>
     </th><th> <span title=""><a href="states-of-the-type-attribute.html#local-date-and-time-state" title="attr-input-type-datetime-local">Local Date and Time</a>,</span>
          <span title=""><a href="number-state.html#number-state" title="attr-input-type-number">Number</a></span>
     </th><th> <span title=""><a href="number-state.html#range-state" title="attr-input-type-range">Range</a></span>
     </th><th> <span title=""><a href="number-state.html#color-state" title="attr-input-type-color">Color</a></span>
     </th><th> <span title=""><a href="number-state.html#checkbox-state" title="attr-input-type-checkbox">Checkbox</a>,</span>
          <span title=""><a href="number-state.html#radio-button-state" title="attr-input-type-radio">Radio Button</a></span>
     </th><th> <span title=""><a href="number-state.html#file-upload-state" title="attr-input-type-file">File Upload</a></span>
     </th><th> <span title=""><a href="number-state.html#submit-button-state" title="attr-input-type-submit">Submit Button</a></span>
     </th><th> <span title=""><a href="number-state.html#image-button-state" title="attr-input-type-image">Image Button</a></span>
     </th><th> <span title=""><a href="number-state.html#reset-button-state" title="attr-input-type-reset">Reset Button</a>,</span>
          <span title=""><a href="number-state.html#button-state" title="attr-input-type-button">Button</a></span>

   </th></tr></thead><tbody><tr><th colspan="15" scope="rowgroup">Content attributes

    </th></tr><tr><th> <code title="attr-input-accept"><a href="number-state.html#attr-input-accept">accept</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-alt"><a href="number-state.html#attr-input-alt">alt</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-autocomplete"><a href="common-input-element-attributes.html#attr-input-autocomplete">autocomplete</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-dirname"><a href="common-input-element-attributes.html#attr-input-dirname">dirname</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-fs-formaction"><a href="association-of-controls-and-forms.html#attr-fs-formaction">formaction</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-fs-formenctype"><a href="association-of-controls-and-forms.html#attr-fs-formenctype">formenctype</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-fs-formmethod"><a href="association-of-controls-and-forms.html#attr-fs-formmethod">formmethod</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-fs-formnovalidate"><a href="association-of-controls-and-forms.html#attr-fs-formnovalidate">formnovalidate</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-fs-formtarget"><a href="association-of-controls-and-forms.html#attr-fs-formtarget">formtarget</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-dim-height"><a href="the-map-element.html#attr-dim-height">height</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-list"><a href="common-input-element-attributes.html#attr-input-list">list</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-max"><a href="common-input-element-attributes.html#attr-input-max">max</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-maxlength"><a href="common-input-element-attributes.html#attr-input-maxlength">maxlength</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-min"><a href="common-input-element-attributes.html#attr-input-min">min</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-multiple"><a href="common-input-element-attributes.html#attr-input-multiple">multiple</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183;  
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-pattern"><a href="common-input-element-attributes.html#attr-input-pattern">pattern</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-placeholder"><a href="common-input-element-attributes.html#attr-input-placeholder">placeholder</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-readonly"><a href="common-input-element-attributes.html#attr-input-readonly">readonly</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-required"><a href="common-input-element-attributes.html#attr-input-required">required</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-size"><a href="common-input-element-attributes.html#attr-input-size">size</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-src"><a href="number-state.html#attr-input-src">src</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-input-step"><a href="common-input-element-attributes.html#attr-input-step">step</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="attr-dim-width"><a href="the-map-element.html#attr-dim-width">width</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 

   </td></tr></tbody><tbody><tr><th colspan="15" scope="rowgroup">IDL attributes and methods

    </th></tr><tr><th> <code title="dom-input-checked"><a href="common-input-element-attributes.html#dom-input-checked">checked</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-input-files"><a href="common-input-element-attributes.html#dom-input-files">files</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr class="impl"><th> <code title="dom-input-value"><a href="common-input-element-attributes.html#dom-input-value">value</a></code>
     </th><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-default" title="dom-input-value-default">default</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-value" title="dom-input-value-value">value</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-value" title="dom-input-value-value">value</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-value" title="dom-input-value-value">value</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-value" title="dom-input-value-value">value</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-value" title="dom-input-value-value">value</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-value" title="dom-input-value-value">value</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-value" title="dom-input-value-value">value</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-value" title="dom-input-value-value">value</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-default-on" title="dom-input-value-default-on">default/on</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-filename" title="dom-input-value-filename">filename</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-default" title="dom-input-value-default">default</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-default" title="dom-input-value-default">default</a> 
     </td><td class="yes"> <a href="common-input-element-attributes.html#dom-input-value-default" title="dom-input-value-default">default</a> 

    </td></tr><tr><th> <code title="dom-input-valueAsDate"><a href="common-input-element-attributes.html#dom-input-valueasdate">valueAsDate</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-input-valueAsNumber"><a href="common-input-element-attributes.html#dom-input-valueasnumber">valueAsNumber</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-input-list"><a href="common-input-element-attributes.html#dom-input-list">list</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-input-selectedOption"><a href="common-input-element-attributes.html#dom-input-selectedoption">selectedOption</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes&#8224; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-textarea/input-select"><a href="association-of-controls-and-forms.html#dom-textarea-input-select">select()</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-textarea/input-selectionStart"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionstart">selectionStart</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-textarea/input-selectionEnd"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionend">selectionEnd</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-textarea/input-selectionDirection"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectiondirection">selectionDirection</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-textarea/input-setSelectionRange"><a href="association-of-controls-and-forms.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-input-stepDown"><a href="common-input-element-attributes.html#dom-input-stepdown">stepDown()</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <code title="dom-input-stepUp"><a href="common-input-element-attributes.html#dom-input-stepup">stepUp()</a></code>
     </th><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

   </td></tr></tbody><tbody><tr><th colspan="15" scope="rowgroup">Events

    </th></tr><tr><th> <span title=""><code title="event-input-input"><a href="common-input-element-attributes.html#event-input-input">input</a></code> event</span>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

    </td></tr><tr><th> <span title=""><code title="event-input-change"><a href="common-input-element-attributes.html#event-input-change">change</a></code> event</span>
     </th><td class="no"> &#183; 
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="yes"> Yes     
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 
     </td><td class="no"> &#183; 

  </td></tr></tbody></table><p class="note">&#8224; The dagger symbol (&#8224;) indicates that
  the feature only applies when the <code title="attr-input-multiple"><a href="common-input-element-attributes.html#attr-input-multiple">multiple</a></code> attribute is not
  specified.</p><div class="impl">

  <p>Some states of the <code title="attr-input-type"><a href="#attr-input-type">type</a></code>
  attribute define a <dfn id="value-sanitization-algorithm">value sanitization algorithm</dfn>.</p>

  <p>Each <code><a href="#the-input-element">input</a></code> element has a <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a>, which is exposed by the <code title="dom-input-value"><a href="common-input-element-attributes.html#dom-input-value">value</a></code> IDL attribute. Some states
  define an <dfn id="concept-input-value-string-number" title="concept-input-value-string-number">algorithm
  to convert a string to a number</dfn>, an <dfn id="concept-input-value-number-string" title="concept-input-value-number-string">algorithm to convert a
  number to a string</dfn>, an <dfn id="concept-input-value-string-date" title="concept-input-value-string-date">algorithm to convert a
  string to a <code>Date</code> object</dfn>, and an <dfn id="concept-input-value-date-string" title="concept-input-value-date-string">algorithm to convert a
  <code>Date</code> object to a string</dfn>, which are used by
  <code title="attr-input-max"><a href="common-input-element-attributes.html#attr-input-max">max</a></code>,
  <code title="attr-input-min"><a href="common-input-element-attributes.html#attr-input-min">min</a></code>,
  <code title="attr-input-step"><a href="common-input-element-attributes.html#attr-input-step">step</a></code>,
  <code title="dom-input-valueAsDate"><a href="common-input-element-attributes.html#dom-input-valueasdate">valueAsDate</a></code>,
  <code title="dom-input-valueAsNumber"><a href="common-input-element-attributes.html#dom-input-valueasnumber">valueAsNumber</a></code>,
  <code title="dom-input-stepDown"><a href="common-input-element-attributes.html#dom-input-stepdown">stepDown()</a></code>, and
  <code title="dom-input-stepUp"><a href="common-input-element-attributes.html#dom-input-stepup">stepUp()</a></code>.</p>

  <p>Each <code><a href="#the-input-element">input</a></code> element has a boolean <dfn id="concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value flag</dfn>. The
  <a href="#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value flag</a>
  must be initially set to false when the element is created, and must
  be set to true whenever the user interacts with the control in a way
  that changes the <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a>.</p>

  </div><p>The <dfn id="attr-input-value" title="attr-input-value"><code>value</code></dfn>
  content attribute gives the default <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a> of the <code><a href="#the-input-element">input</a></code>
  element. <span class="impl">When the <code title="attr-input-value"><a href="#attr-input-value">value</a></code> content attribute is added,
  set, or removed, if the control's <a href="#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value flag</a> is
  false, the user agent must set the <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a> of the element to the value of
  the <code title="attr-input-value"><a href="#attr-input-value">value</a></code> content attribute,
  if there is one, or the empty string otherwise, and then run the
  current <a href="#value-sanitization-algorithm">value sanitization algorithm</a>, if one is
  defined.</span></p><div class="impl">

  <p>Each <code><a href="#the-input-element">input</a></code> element has a <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a>, which is exposed by
  the <code title="dom-input-checked"><a href="common-input-element-attributes.html#dom-input-checked">checked</a></code> IDL
  attribute.</p>

  <p>Each <code><a href="#the-input-element">input</a></code> element has a boolean <dfn id="concept-input-checked-dirty-flag" title="concept-input-checked-dirty-flag">dirty checkedness
  flag</dfn>. When it is true, the element is said to have a <dfn id="concept-input-checked-dirty" title="concept-input-checked-dirty"><i>dirty
  checkedness</i></dfn>. The <a href="#concept-input-checked-dirty-flag" title="concept-input-checked-dirty-flag">dirty checkedness
  flag</a> must be initially set to false when the element is
  created, and must be set to true whenever the user interacts with
  the control in a way that changes the <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a>.</p>

  </div><p>The <dfn id="attr-input-checked" title="attr-input-checked"><code>checked</code></dfn>
  content attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a> that gives the
  default <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a> of the
  <code><a href="#the-input-element">input</a></code> element. <span class="impl">When the <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code> content attribute is
  added, if the control does not have <i title="concept-input-checked-dirty"><a href="#concept-input-checked-dirty">dirty checkedness</a></i>, the user
  agent must set the <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a> of the element to
  true; when the <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code>
  content attribute is removed, if the control does not have <i title="concept-input-checked-dirty"><a href="#concept-input-checked-dirty">dirty checkedness</a></i>, the user
  agent must set the <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a> of the element to
  false.</span></p><div class="impl">

  <p>The <a href="association-of-controls-and-forms.html#concept-form-reset-control" title="concept-form-reset-control">reset
  algorithm</a> for <code><a href="#the-input-element">input</a></code> elements is to set the <a href="#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value flag</a> and
  <a href="#concept-input-checked-dirty-flag" title="concept-input-checked-dirty-flag">dirty checkedness
  flag</a> back to false, set the <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a> of the element to the value of
  the <code title="attr-input-value"><a href="#attr-input-value">value</a></code> content attribute,
  if there is one, or the empty string otherwise, set the <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a> of the element to true
  if the element has a <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code>
  content attribute and false if it does not, empty the list of <a href="number-state.html#concept-input-type-file-selected" title="concept-input-type-file-selected">selected files</a>, and
  then invoke the <a href="#value-sanitization-algorithm">value sanitization algorithm</a>, if the
  <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute's current state
  defines one.</p>

  <p>Each <code><a href="#the-input-element">input</a></code> element is either <dfn id="concept-input-mutable" title="concept-input-mutable"><i>mutable</i></dfn> or <dfn id="concept-input-immutable" title="concept-input-immutable"><i>immutable</i></dfn>. Except where
  otherwise specified, an <code><a href="#the-input-element">input</a></code> element is always <i title="concept-input-mutable"><a href="#concept-input-mutable">mutable</a></i>. Similarly, except where
  otherwise specified, the user agent should not allow the user to
  modify the element's <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a> or
  <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a>.</p>

  <p>When an <code><a href="#the-input-element">input</a></code> element is <a href="association-of-controls-and-forms.html#concept-fe-disabled" title="concept-fe-disabled">disabled</a>, it is <i title="concept-input-immutable"><a href="#concept-input-immutable">immutable</a></i>.</p>

  <p>When an <code><a href="#the-input-element">input</a></code> element does not have a
  <code><a href="infrastructure.html#document">Document</a></code> node as one of its ancestors (i.e. when it is
  not in the document), it is <i title="concept-input-immutable"><a href="#concept-input-immutable">immutable</a></i>.</p> 
  <p class="note">The <code title="attr-input-readonly"><a href="common-input-element-attributes.html#attr-input-readonly">readonly</a></code> attribute can also in
  some cases (e.g. for the <a href="states-of-the-type-attribute.html#date-state" title="attr-input-type-date">Date</a> state, but not the <a href="number-state.html#checkbox-state" title="attr-input-type-checkbox">Checkbox</a> state) make an
  <code><a href="#the-input-element">input</a></code> element <i title="concept-input-immutable"><a href="#concept-input-immutable">immutable</a></i>.</p>

  <p>When an <code><a href="#the-input-element">input</a></code> element is <a href="infrastructure.html#concept-clone" title="concept-clone">cloned</a>, the element's <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a>, <a href="#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value flag</a>,
  <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a>, and <a href="#concept-input-checked-dirty-flag" title="concept-input-checked-dirty-flag">dirty checkedness
  flag</a> must be propagated to the clone when it is created.</p>

  <hr><p>When an <code><a href="#the-input-element">input</a></code> element is first created, the
  element's rendering and behavior must be set to the rendering and
  behavior defined for the <code title="attr-input-type"><a href="#attr-input-type">type</a></code>
  attribute's state, and the <a href="#value-sanitization-algorithm">value sanitization
  algorithm</a>, if one is defined for the <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute's state, must be
  invoked.</p>

  </div><div class="impl" id="input-type-change">

  <p>When an <code><a href="#the-input-element">input</a></code> element's <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute changes state, the
  user agent must run the following steps:</p>

  <ol><li><p>If the previous state of the element's <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute put the <code title="dom-input-value"><a href="common-input-element-attributes.html#dom-input-value">value</a></code> IDL attribute in the <i title="dom-input-value-value"><a href="common-input-element-attributes.html#dom-input-value-value">value</a></i> mode, and the element's
   <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a> is not the empty
   string, and the new state of the element's <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute puts the <code title="dom-input-value"><a href="common-input-element-attributes.html#dom-input-value">value</a></code> IDL attribute in either the <i title="dom-input-value-default"><a href="common-input-element-attributes.html#dom-input-value-default">default</a></i> mode or the <i title="dom-input-value-default-on"><a href="common-input-element-attributes.html#dom-input-value-default-on">default/on</a></i> mode, then set
   the element's <code title="attr-input-value"><a href="#attr-input-value">value</a></code> content
   attribute to the element's <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a>.</p></li>

   <li><p>Otherwise, if the previous state of the element's <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute put the <code title="dom-input-value"><a href="common-input-element-attributes.html#dom-input-value">value</a></code> IDL attribute in any mode
   other than the <i title="dom-input-value-value"><a href="common-input-element-attributes.html#dom-input-value-value">value</a></i> mode, and
   the new state of the element's <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute puts the <code title="dom-input-value"><a href="common-input-element-attributes.html#dom-input-value">value</a></code> IDL attribute in the <i title="dom-input-value-value"><a href="common-input-element-attributes.html#dom-input-value-value">value</a></i> mode, then set the <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a> of the element to the value
   of the <code title="attr-input-value"><a href="#attr-input-value">value</a></code> content
   attribute, if there is one, or the empty string otherwise, and
   then set the control's <a href="#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value flag</a> to
   false.</p></li>

   <li><p>Update the element's rendering and behavior to the new
   state's.</p></li>

   <li><p>Invoke the <a href="#value-sanitization-algorithm">value sanitization algorithm</a>, if one
   is defined for the <code title="attr-input-type"><a href="#attr-input-type">type</a></code>
   attribute's new state.</p></li>

  </ol></div><hr><p>The <code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code> attribute is used to
  explicitly associate the <code><a href="#the-input-element">input</a></code> element with its
  <a href="association-of-controls-and-forms.html#form-owner">form owner</a>. The <code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code>
  attribute represents the element's name. The <code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code> attribute is used to make
  the control non-interactive and to prevent its value from being
  submitted. The <code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code>
  attribute controls focus.</p><div class="impl">

  <p>The <dfn id="dom-input-indeterminate" title="dom-input-indeterminate"><code>indeterminate</code></dfn> IDL
  attribute must initially be set to false. On getting, it must return
  the last value it was set to. On setting, it must be set to the new
  value. It has no effect except for changing the appearance of <a href="number-state.html#checkbox-state" title="attr-input-type-checkbox">checkbox</a> controls.</p>

  <p>The <dfn id="dom-input-accept" title="dom-input-accept"><code>accept</code></dfn>, <dfn id="dom-input-alt" title="dom-input-alt"><code>alt</code></dfn>, <dfn id="dom-input-max" title="dom-input-max"><code>max</code></dfn>, <dfn id="dom-input-min" title="dom-input-min"><code>min</code></dfn>, <dfn id="dom-input-multiple" title="dom-input-multiple"><code>multiple</code></dfn>, <dfn id="dom-input-pattern" title="dom-input-pattern"><code>pattern</code></dfn>, <dfn id="dom-input-placeholder" title="dom-input-placeholder"><code>placeholder</code></dfn>, <dfn id="dom-input-required" title="dom-input-required"><code>required</code></dfn>, <dfn id="dom-input-size" title="dom-input-size"><code>size</code></dfn>, <dfn id="dom-input-src" title="dom-input-src"><code>src</code></dfn>, and <dfn id="dom-input-step" title="dom-input-step"><code>step</code></dfn> IDL attributes must
  <a href="common-dom-interfaces.html#reflect">reflect</a> the respective content attributes of the same
  name. The <dfn id="dom-input-dirname" title="dom-input-dirName"><code>dirName</code></dfn> IDL attribute
  must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-input-dirname"><a href="common-input-element-attributes.html#attr-input-dirname">dirname</a></code> content attribute. The <dfn id="dom-input-readonly" title="dom-input-readOnly"><code>readOnly</code></dfn> IDL attribute
  must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-input-readonly"><a href="common-input-element-attributes.html#attr-input-readonly">readonly</a></code> content attribute. The
  <dfn id="dom-input-defaultchecked" title="dom-input-defaultChecked"><code>defaultChecked</code></dfn>
  IDL attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code> content attribute. The
  <dfn id="dom-input-defaultvalue" title="dom-input-defaultValue"><code>defaultValue</code></dfn>
  IDL attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-input-value"><a href="#attr-input-value">value</a></code> content attribute.</p>

  <p>The <dfn id="dom-input-autocomplete" title="dom-input-autocomplete"><code>autocomplete</code></dfn> and
  <dfn id="dom-input-type" title="dom-input-type"><code>type</code></dfn> IDL attributes
  must <a href="common-dom-interfaces.html#reflect">reflect</a> the respective content attributes of the
  same name, <a href="common-dom-interfaces.html#limited-to-only-known-values">limited to only known values</a>. The <dfn id="dom-input-maxlength" title="dom-input-maxLength"><code>maxLength</code></dfn> IDL
  attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-input-maxlength"><a href="common-input-element-attributes.html#attr-input-maxlength">maxlength</a></code> content attribute,
  <a href="common-dom-interfaces.html#limited-to-only-non-negative-numbers">limited to only non-negative numbers</a>.</p>

  <p>The <code title="dom-cva-willValidate"><a href="association-of-controls-and-forms.html#dom-cva-willvalidate">willValidate</a></code>, <code title="dom-cva-validity"><a href="association-of-controls-and-forms.html#dom-cva-validity">validity</a></code>, and <code title="dom-cva-validationMessage"><a href="association-of-controls-and-forms.html#dom-cva-validationmessage">validationMessage</a></code>
  attributes, and the <code title="dom-cva-checkValidatity"><a href="association-of-controls-and-forms.html#dom-cva-checkvalidatity">checkValidity()</a></code> and <code title="dom-cva-setCustomValidity"><a href="association-of-controls-and-forms.html#dom-cva-setcustomvalidity">setCustomValidity()</a></code>
  methods, are part of the <a href="association-of-controls-and-forms.html#the-constraint-validation-api">constraint validation API</a>. The
  <code title="dom-lfe-labels"><a href="forms.html#dom-lfe-labels">labels</a></code> attribute provides a list
  of the element's <code><a href="forms.html#the-label-element">label</a></code>s. The <code title="dom-textarea/input-select"><a href="association-of-controls-and-forms.html#dom-textarea-input-select">select()</a></code>, <code title="dom-textarea/input-selectionStart"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionstart">selectionStart</a></code>,
  <code title="dom-textarea/input-selectionEnd"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionend">selectionEnd</a></code>,
  <code title="dom-textarea/input-selectionDirection"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectiondirection">selectionDirection</a></code>,
  and <code title="dom-textarea/input-setSelectionRange"><a href="association-of-controls-and-forms.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
  methods and attributes expose the element's text selection. The
  <code title="dom-fe-autofocus"><a href="association-of-controls-and-forms.html#dom-fe-autofocus">autofocus</a></code>, <code title="dom-fe-disabled"><a href="association-of-controls-and-forms.html#dom-fe-disabled">disabled</a></code>, <code title="dom-fae-form"><a href="association-of-controls-and-forms.html#dom-fae-form">form</a></code>, and <code title="dom-fe-name"><a href="association-of-controls-and-forms.html#dom-fe-name">name</a></code> IDL attributes are part of the
  element's forms API.</p>

  </div></body></html>