CINXE.COM
HTML <input> Tag
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="keywords" content="HTML input tag, form input control"> <meta name="Description" content="HTML input tag - represents a form input control in an HTML document."> <link rel="canonical" href="https://www.quackit.com/html/tags/html_input_tag.cfm"> <title>HTML <input> Tag</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <link rel="shortcut icon" href="/pix/favicon96.png"> <link rel="apple-touch-icon" href="/pix/apple-touch-icon.png"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet"> <link href="/common/css/master.45.min.css" rel="stylesheet"> <script async src="https://cdn.fuseplatform.net/publift/tags/2/3499/fuse.js"></script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-Q3H025ZKLN"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-Q3H025ZKLN'); </script> </head> <body> <header class="site-header"> <div class="site-header-base"> <div class="site-logo"> <a title="Quackit Homepage" target="_top" href="/"><img src="/pix/quackit_logo_watermark.png" width="87" height="33" alt="Quackit Logo"></a> </div> <button id="site-nav-toggler" class="site-nav-toggler" aria-expanded="false" aria-controls="site-nav"> <span class="sr-only">Toggle navigation</span> ☰ </button> </div> <nav id="site-nav" class="site-nav"> <div class="site-links"> <ul> <li><a href="/"><i class="fa fa-home"></i> <span class="sr-only">Home</span></a></li> <li><a href="/html/">HTML</a></li> <li><a href="/css/">CSS</a></li> <li><a href="/scripting/">Scripting</a></li> <li><a href="/database/">Database</a></li> </ul> </div> <div class="site-search-top"> <form action="/search/" id="cse-search-box-bottom" class="site-search"> <div> <input type="hidden" name="cx" value="partner-pub-6331358926293806:98x0fk-bbgi"> <input type="hidden" name="cof" value="FORID:10"> <input type="hidden" name="ie" value="ISO-8859-1"> <input type="text" name="q" size="20" class="site-search-input"> <button type="submit" name="sa" class="site-search-button"><i class="fa fa-search"></i></button> </div> </form> </div> </nav> </header> <div class="main"> <article class="content"> <h1 class="page-title">HTML <input> Tag</h1> <div class="ad ad-top"> <!-- GAM 71161633/QCKIT_quackit/article_header --> <div data-fuse="23059883623"></div> </div> <p class="lead">The HTML <code><input></code> tag represents a form input control in an HTML document. A form input control is a control that allows the user to input data and interact with a website or application.</p> <div class="ad"> <!-- GAM 71161633/QCKIT_quackit/article_incontent_1 --> <div data-fuse="23059883629"></div> </div> <h2>Syntax</h2> <p>The <code><input></code> tag is written as <code><input></code> (no end tag). An <code><input></code> tag is typically given a <code>type</code> attribute to specify the type of control, and a <code>name</code> attribute so that the form processor can make a reference to it. Often a <code>value</code> attribute is used to specify the default value of the form control.</p> <p>There are a lot of other attributes that can be used with the <code><input></code> tag. These are listed below under "Template".</p> <p>Here's a basic example of the syntax for the <code><input></code> tag with some attributes:</p> <script src="/common/js/codemirror/lib/codemirror.js"></script> <script src="/common/js/codemirror/mode/htmlmixed/htmlmixed.js"></script> <script src="/common/js/codemirror/mode/css/css.js"></script> <script src="/common/js/codemirror/mode/javascript/javascript.js"></script> <script src="/common/js/codemirror/mode/xml/xml.js"></script> <div class="code-only"> <textarea id="example1" autocomplete="off" spellcheck="false"><input type="text" name="fcolor" value="Blue"></textarea> </div> <script> var exampleCode1 = CodeMirror.fromTextArea(document.getElementById("example1"), { mode: "htmlmixed", tabMode: "indent", styleActiveLine: false, lineNumbers: false, lineWrapping: true, theme: "q-dark" }); </script> <p>Here's an example that contains three <code><input></code> elements within a typical form:</p> <script src="/common/js/codemirror/mode/htmlmixed/htmlmixed.js"></script> <div class="code-only"> <textarea id="example2" autocomplete="off" spellcheck="false"><form action="process_form.cfm" method="get">
	<label>First Name: <input name="first_name"></label>
	<label>Last Name: <input name="last_name"></label>
	<input type="submit" value="Submit">
</form></textarea> </div> <script> var exampleCode2 = CodeMirror.fromTextArea(document.getElementById("example2"), { mode: "htmlmixed", tabMode: "indent", styleActiveLine: false, lineNumbers: false, lineWrapping: true, theme: "q-dark" }); </script> <h2>Examples</h2> <h3>Basic Form</h3> <p>Here's a form that is used to collect the user's name details. Three <code><input></code> tags are used: two for the name details, one for the submit button. </p> <div class="code-only"> <textarea id="example3" autocomplete="off" spellcheck="false"><form action="/html/form_handler.cfm" target="_blank" method="get">
<p><label>First name: <input type="text" name="first_name" maxlength="100" style="width:120px;"></label></p>
<p><label>Last name: <input type="text" name="last_name" maxlength="100" style="width:120px;"></label></p>
<input type="submit" value="Submit">
</form></textarea> </div> <script> var exampleCode3 = CodeMirror.fromTextArea(document.getElementById("example3"), { mode: "htmlmixed", tabMode: "indent", styleActiveLine: false, lineNumbers: false, lineWrapping: true, theme: "q-dark" }); </script> <h3>The <code>form</code> Attribute</h3> <p>It is possible to associate the <code><input></code> element with a form by using the <code><input></code> element's <code>form</code> attribute. </p> <p>If using the <code><input></code> element's <code>form</code> attribute, you must specify the <code>id</code> of the form you wish to associate the element with.</p> <p>In the following example, I've placed all the form-associated elements outside of the <code><input></code> element. But I've purposely associated only two elements with the form (to demonstrate the effect of the <code>form</code> attribute). The first name has been associated with a form but the last name has not. Therefore, the last name is not submitted with the form and the action page doesn't acknowledge the users' last name.</p> <div class="code-only"> <textarea id="example4" autocomplete="off" spellcheck="false"><form action="/html/form_handler.cfm" target="_blank" method="get" id="customer_name"></form>
<p><label>First name: <input form="customer_name" type="text" name="first_name" maxlength="100" style="width:120px;"></label></p>
<p><label>Last name: <input type="text" name="last_name" maxlength="100" style="width:120px;"></label></p>
<input form="customer_name" type="submit" value="Submit"></textarea> </div> <script> var exampleCode4 = CodeMirror.fromTextArea(document.getElementById("example4"), { mode: "htmlmixed", tabMode: "indent", styleActiveLine: false, lineNumbers: false, lineWrapping: true, theme: "q-dark" }); </script> <h3>Radio Buttons</h3> <p>In this example, we create radio buttons. We do this by giving the <code>type</code> attribute a value of <code>radio</code>. Each radio button in a group must have the same <code>name</code> value - that's how they are associated. The <code>value</code> is what distinguishes the different options.</p> <div class="code-only"> <textarea id="example5" autocomplete="off" spellcheck="false"><p>Which prize do you prefer?</p>
<form>
<label><input type="radio" name="prize" value="house">House</label>
<label><input type="radio" name="prize" value="money">$1 million</label>
<label><input type="radio" name="prize" value="none">No prize thanks, I'm already happy :)</label>
</form></textarea> </div> <script> var exampleCode5 = CodeMirror.fromTextArea(document.getElementById("example5"), { mode: "htmlmixed", tabMode: "indent", styleActiveLine: false, lineNumbers: false, lineWrapping: true, theme: "q-dark" }); </script> <h2>Form-Associated Elements</h2> <p>The <code><input></code> tag is referred to as a <i>form associated element</i>. This is because it can have a form-owner.</p> <p>Here are the form-associated elements in HTML.</p> <ul class="col-3"> <li><a href="/html/tags/html_button_tag.cfm"><code><button></code></a></li> <li><a href="/html/tags/html_fieldset_tag.cfm"><code><fieldset></code></a></li> <li><code><input></code></li> <li><a href="/html/tags/html_label_tag.cfm"><code><label></code></a></li> <li><a href="/html/tags/html_object_tag.cfm"><code><object></code></a></li> <li><a href="/html/tags/html_output_tag.cfm"><code><output></code></a></li> <li><a href="/html/tags/html_select_tag.cfm"><code><select></code></a></li> <li><a href="/html/tags/html_textarea_tag.cfm"><code><textarea></code></a></li> <li><a href="/html/tags/html_img_tag.cfm"><code><img></code></a></li> </ul> <h2>Attributes</h2> <p><a href="/html/tutorial/html_attributes.cfm">Attributes</a> can be added to an HTML element to provide more information about how the element should appear or behave.</p> <p>The <code><input></code> element accepts the following attributes.</p> <table class="tabular"> <tr> <th>Attribute</th><th>Description</th> </tr> <tr> <td><code>accept</code></td><td>Specifies a comma-separated list of content types that the server accepts. <p>Possible values:</p> <ul> <li><code>audio/*</code></li> <li><code>video/*</code></li> <li><code>image/*</code></li> <li><i>[A valid MIME type, with no parameters]</i></li> <li><i>[A string whose first character is a (U+002E) FULL STOP character]</i> (for specifying a file extension)</li> </ul> </td> </tr> <tr> <td><code>alt</code></td><td>Alternate text. This specifies text to be used in case the browser/user agent can't render the input control.</td> </tr> <tr> <td><code>autocomplete</code></td><td>Prevents the browser from using "autocomplete" with this control. Can be useful for sensitive data, such as banking details etc. <p>Possible values:</p> <ul> <li><code>on</code> (default value)</li> <li><code>off</code></li> </ul> </td> </tr> <tr> <td><code>autofocus</code></td><td>Automatically gives focus to this control when the page loads. This allows the user to start using the control without having to select it first. There must not be more than one element in the document with the autofocus attribute specified.</p> <p>This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either <code>autofocus</code> or <code>autofocus="autofocus"</code>).</p> <p>Possible values:</p> <ul> <li><i>[Empty string]</i></li> <li><code>autofocus</code></li> </ul> </td> </tr> <tr> <td><code>checked</code></td><td>The input control will already be selected when the page loads. Used with <code>type="radio"</code> or <code>type="checkbox"</code>.</td> </tr> <tr> <td><code>disabled</code></td><td>Disables the input control. The control won't accept changes from the user. It also cannot receive focus and will be skipped when tabbing. <p>This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either <code>disabled</code> or <code>disabled="disabled"</code>).</p> <p>Possible values:</p> <ul> <li><i>[Empty string]</i></li> <li><code>disabled</code></li> </ul> </td> </tr> <tr> <td><code>dirname</code></td><td>Determines the direction of the text as submitted in the <code>input</code> field. The value of this attribute can be a string of text such as a name for the field. For example, if you specify the attribute as <code>dirname="text_dir"</code>, once the form has been submitted, the data might look like this: <code>text_dir=ltr</code>.</p> </td> </tr> <tr> <td><code>form</code></td><td>Specifies the ID of a form to which this control belongs. <p>Possible values:</p> <p><i>[The ID of a form element in the element's owner <code>Document</code>]</i></p> </td> </tr> <tr> <td><code>formaction</code></td><td>Specifies the URL of the file that will process the control when submitted.</td> </tr> <tr> <td><code>formenctype</code></td><td>Specifies the content type used to encode the form data set when it's submitted to the server. <p>Possible values:</p> <ul> <li><code>application/x-www-form-urlencoded</code> (default)</li> <li><code>multipart/form-data</code> (use this when uploading files)</li> <li><code>text/plain</code> (use this when uploading files)</li> </ul> </td> </tr> <tr> <td><code>formmethod</code></td><td>Specifies the HTTP method to use when the control is submitted. <p>Possible values:</p> <ul> <li><code>get</code> (the form data is appended to the URL when submitted)</li> <li><code>post</code> (the form data is not appended to the URL)</li> <li><code>dialog</code> (Closes the dialog box in which the form finds itself, if any, and otherwise does not submit.)</li> </ul> </td> </tr> <tr> <td><code>formnovalidate</code></td><td>Specifies that the form is not to be validated during submission.</p> <p>This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either <code>novalidate</code> or <code>novalidate="novalidate"</code>).</p> <p>Possible values:</p> <ul> <li><i>[Empty string]</i></li> <li><code>novalidate</code></li> </ul> </td> </tr> <tr> <td><code>formtarget</code></td><td>Specifies the browsing context to load the destination indicated in the <code>action</code> attribute.</p> <p>Possible values:</p> <ul> <li><code>_blank</code></li> <li><code>_self</code></li> <li><code>_top</code></li> <li><code>_parent</code></li> </ul> </td> </tr> <tr> <td><code>height</code></td><td>Specifies the height of the control.</td> </tr> <tr> <td><code>list</code></td><td>Specifies a <a href="/html/tags/html_datalist_tag.cfm"><code>datalist</code></a> element to use for a list of predefined options for the user. The value must be the ID of a <a href="/html/tags/html_datalist_tag.cfm"><code>datalist</code></a> element in the same document.</td> </tr> <tr> <td><code>max</code></td><td>Specifies the maximum value for the control.</td> </tr> <tr> <td><code>maxlength</code></td><td>Specifies the maximum number of characters that the user is allowed to enter into the text field.</td> </tr> <tr> <td><code>min</code></td><td>Specifies the minimum value for the control.</td> </tr> <tr> <td><code>minlength</code></td><td>Specifies a lower bound on the number of characters a user can input.</td> </tr> <tr> <td><code>multiple</code></td><td>Specifies whether the user is allowed to enter more than one value. <p>This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either <code>multiple</code> or <code>multiple="multiple"</code>).</p> <p>Possible values:</p> <ul> <li><i>[Empty string]</i></li> <li><code>multiple</code></li> </ul> </td> </tr> <tr> <td><code>name</code></td><td>Assigns a name to the input control.</td> </tr> <tr> <td><code>pattern</code></td><td>Specifies a regular expression against which the control's value is to be checked. Value must match the Pattern production of ECMA 262's grammar.</td> </tr> <tr> <td><code>placeholder</code></td><td>Specifies a <em>short</em> hint (a word or short phrase) intended to aid the user with data entry. A hint could be a sample value or a brief description of the expected format. <div class="tip"> <p>Note: For a longer hint or other advisory text, the title global attribute is more appropriate.</p> <p>Also note that the <code>placeholder</code> attribute should not be used as an alternative to the <a href="/html/tags/html_label_tag.cfm"><code><label></code></a> element.</p> </div> </td> </tr> <tr> <td><code>readonly</code></td><td>Sets the input control to read-only - it won't allow the user to change the value. The control however, can receive focus and are included when tabbing through the form controls. <p>This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either <code>readonly</code> or <code>readonly="readonly"</code>).</p> <p>Possible values:</p> <ul> <li><i>[Empty string]</i></li> <li><code>readonly</code></li> </ul> </td> </tr> <tr> <td><code>required</code></td><td>Specifies that the input field is a required field (the user must complete this field). <p>This is a boolean attribute. If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either <code>required</code> or <code>required="required"</code>).</p> <p>Possible values:</p> <ul> <li><i>[Empty string]</i></li> <li><code>required</code></li> </ul> </td> </tr> <tr> <td><code>size</code></td><td>Specifies the width of the control, in characters. Value that is a valid non-negative integer greater than zero.</td> </tr> <tr> <td><code>src</code></td><td>If <code>type="image"</code>, this attribute specifies the location of the image.</td> </tr> <tr> <td><code>step</code></td><td>Specifies the granularity that is expected (and required) of the value, by limiting the allowed values.</td> </tr> <tr> <td><code>type</code></td><td>Specifies the type of control. <p>Possible values:</p> <table class="tabular"> <tr> <th>Value</th><th>Data Type</th><th>Control Type</th> </tr> <tr> <td><code>hidden</code></td><td>An arbitrary string</td><td>N/A</td> </tr> <tr> <td><code>text</code></td><td>Text with no line breaks</td><td>Text field</td> </tr> <tr> <td><code>search</code></td><td>Text with no line breaks</td><td>Text field</td> </tr> <tr> <td><code>tel</code></td><td>Text with no line breaks</td><td>Text field</td> </tr> <tr> <td><code>url</code></td><td>An absolute URL</td><td>Text field</td> </tr> <tr> <td><code>email</code></td><td>An email address or list of email addresses</td><td>Text field</td> </tr> <tr> <td><code>password</code></td><td>Text with no line breaks (sensitive information)</td><td>Text field that obscures data entry (eg, hides the password by using asterisks (******) or similar)</td> </tr> <tr> <td><code>datetime</code></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>Date and time control</td> </tr> <tr> <td><code>date</code></td><td>A date (year, month, day) with no time zone</td><td>Date control</td> </tr> <tr> <td><code>month</code></td><td>A date consisting of a year and a month with no time zone</td><td>A month control</td> </tr> <tr> <td><code>week</code></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><code>time</code></td><td>A time (hour, minute, seconds, fractional seconds) with no time zone</td><td>A time control</td> </tr> <tr> <td><code>datetime-local</code></td><td>A date and time (year, month, day, hour, minute, second, fraction of a second) with no time zone</td><td>Date and time control</td> </tr> <tr> <td><code>number</code></td><td>A numerical value</td><td>Text field or spinner control</td> </tr> <tr> <td><code>range</code></td><td>A numerical value, with the extra semantic that the exact value is not important</td><td>Slider control or similar</td> </tr> <tr> <td><code>color</code></td><td>An sRGB color with 8-bit red, green, and blue components</td><td>A color well. Enables the user to select a color.</td> </tr> <tr> <td><code>checkbox</code></td><td>A set of zero or more values from a predefined list</td><td>Checkbox</td> </tr> <tr> <td><code>radio</code></td><td>An enumerated value</td><td>Radio button</td> </tr> <tr> <td><code>file</code></td><td>Zero or more files each with a MIME type and optionally a file name</td><td>A label and a button</td> </tr> <tr> <td><code>submit</code></td><td>An enumerated value, with the extra semantic that it must be the last value selected and initiates form submission</td><td>Button</td> </tr> <tr> <td><code>image</code></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><code>reset</code></td><td>N/A</td><td>Button</td> </tr> <tr> <td><code>button</code></td><td>N/A</td><td>Button</td> </tr> </table> </td> </tr> <tr> <td><code>value</code></td><td>Specifies a default value for the control. <b>Note</b>: If <code>type="checkbox"</code> or <code>type="radio"</code> this attribute is required.</td> </tr> <tr> <td><code>width</code></td><td>Specifies the width of the control.</td> </tr> </table> <h3>Global Attributes</h3> <p>The following attributes are standard across all HTML elements. Therefore, you can use these attributes with the <code><input></code> tag , as well as with all other HTML tags.</p> <ul class="col-3"> <li><code>accesskey</code></li> <li><code>autocapitalize</code></li> <li><code>class</code></li> <li><code>contenteditable</code></li> <li><code>data-*</code></li> <li><code>dir</code></li> <li><code>draggable</code></li> <li><code>hidden</code></li> <li><code>id</code></li> <li><code>inputmode</code></li> <li><code>is</code></li> <li><code>itemid</code></li> <li><code>itemprop</code></li> <li><code>itemref</code></li> <li><code>itemscope</code></li> <li><code>itemtype</code></li> <li><code>lang</code></li> <li><code>part</code></li> <li><code>slot</code></li> <li><code>spellcheck</code></li> <li><code>style</code></li> <li><code>tabindex</code></li> <li><code>title</code></li> <li><code>translate</code></li> </ul> <p>For a full explanation of these attributes, see <a href="/html/tags/html_5_global_attributes.cfm">HTML 5 global attributes</a>.</p> <h3>Event Handlers</h3> <p>Event handler content attributes enable you to invoke a script from within your HTML. The script is invoked when a certain "event" occurs. Each event handler content attribute deals with a different event.</p> <ul class="col-3"> <li><code>onabort</code></li> <li><code>onauxclick</code></li> <li><code>onblur</code></li> <li><code>oncancel</code></li> <li><code>oncanplay</code></li> <li><code>oncanplaythrough</code></li> <li><code>onchange</code></li> <li><code>onclick</code></li> <li><code>onclose</code></li> <li><code>oncontextmenu</code></li> <li><code>oncopy</code></li> <li><code>oncuechange</code></li> <li><code>oncut</code></li> <li><code>ondblclick</code></li> <li><code>ondrag</code></li> <li><code>ondragend</code></li> <li><code>ondragenter</code></li> <li><code>ondragexit</code></li> <li><code>ondragleave</code></li> <li><code>ondragover</code></li> <li><code>ondragstart</code></li> <li><code>ondrop</code></li> <li><code>ondurationchange</code></li> <li><code>onemptied</code></li> <li><code>onended</code></li> <li><code>onerror</code></li> <li><code>onfocus</code></li> <li><code>onformdata</code></li> <li><code>oninput</code></li> <li><code>oninvalid</code></li> <li><code>onkeydown</code></li> <li><code>onkeypress</code></li> <li><code>onkeyup</code></li> <li><code>onlanguagechange</code></li> <li><code>onload</code></li> <li><code>onloadeddata</code></li> <li><code>onloadedmetadata</code></li> <li><code>onloadstart</code></li> <li><code>onmousedown</code></li> <li><code>onmouseenter</code></li> <li><code>onmouseleave</code></li> <li><code>onmousemove</code></li> <li><code>onmouseout</code></li> <li><code>onmouseover</code></li> <li><code>onmouseup</code></li> <li><code>onpaste</code></li> <li><code>onpause</code></li> <li><code>onplay</code></li> <li><code>onplaying</code></li> <li><code>onprogress</code></li> <li><code>onratechange</code></li> <li><code>onreset</code></li> <li><code>onresize</code></li> <li><code>onscroll</code></li> <li><code>onsecuritypolicyviolation</code></li> <li><code>onseeked</code></li> <li><code>onseeking</code></li> <li><code>onselect</code></li> <li><code>onslotchange</code></li> <li><code>onstalled</code></li> <li><code>onsubmit</code></li> <li><code>onsuspend</code></li> <li><code>ontimeupdate</code></li> <li><code>ontoggle</code></li> <li><code>onvolumechange</code></li> <li><code>onwaiting</code></li> <li><code>onwheel</code></li> </ul> <p>Most event handler content attributes can be used on all HTML elements, but some event handlers have specific rules around when they can be used and which elements they are applicable to.</p> <p>For more detail, see <a href="/html/tags/html_5_event_handler_content_attributes.cfm">HTML event handler content attributes</a>.</p> </article> <div class="sidebar"> <nav> <ul> <li> <h3><a href="/html/tags/">HTML Tags</a></h3> <ul class="taglist"> <li><a href="/html/tags/html_comments_tag.cfm">!--...--</a></li> <li><a href="/html/tags/html_doctype_tag.cfm">!DOCTYPE</a></li> <li><a href="/html/tags/html_a_tag.cfm">a</a></li> <li><a href="/html/tags/html_abbr_tag.cfm">abbr</a></li> <li><a href="/html/tags/html_address_tag.cfm">address</a></li> <li><a href="/html/tags/html_area_tag.cfm">area</a></li> <li class="new"><a href="/html/tags/html_article_tag.cfm">article</a></li> <li class="new"><a href="/html/tags/html_aside_tag.cfm">aside</a></li> <li class="new"><a href="/html/tags/html_audio_tag.cfm">audio</a></li> <li><a href="/html/tags/html_b_tag.cfm">b</a></li> <li><a href="/html/tags/html_base_tag.cfm">base</a></li> <li class="new"><a href="/html/tags/html_bdi_tag.cfm">bdi</a></li> <li><a href="/html/tags/html_bdo_tag.cfm">bdo</a></li> <li><a href="/html/tags/html_blockquote_tag.cfm">blockquote</a></li> <li><a href="/html/tags/html_body_tag.cfm">body</a></li> <li><a href="/html/tags/html_br_tag.cfm">br</a></li> <li><a href="/html/tags/html_button_tag.cfm">button</a></li> <li class="new"><a href="/html/tags/html_canvas_tag.cfm">canvas</a></li> <li><a href="/html/tags/html_caption_tag.cfm">caption</a></li> <li><a href="/html/tags/html_cite_tag.cfm">cite</a></li> <li><a href="/html/tags/html_code_tag.cfm">code</a></li> <li><a href="/html/tags/html_col_tag.cfm">col</a></li> <li><a href="/html/tags/html_colgroup_tag.cfm">colgroup</a></li> <li class="new"><a href="/html/tags/html_data_tag.cfm">data</a></li> <li class="new"><a href="/html/tags/html_datalist_tag.cfm">datalist</a></li> <li><a href="/html/tags/html_dd_tag.cfm">dd</a></li> <li><a href="/html/tags/html_del_tag.cfm">del</a></li> <li class="new"><a href="/html/tags/html_details_tag.cfm">details</a></li> <li><a href="/html/tags/html_dfn_tag.cfm">dfn</a></li> <li class="new"><a href="/html/tags/html_dialog_tag.cfm">dialog</a></li> <li><a href="/html/tags/html_div_tag.cfm">div</a></li> <li><a href="/html/tags/html_dl_tag.cfm">dl</a></li> <li><a href="/html/tags/html_dt_tag.cfm">dt</a></li> <li><a href="/html/tags/html_em_tag.cfm">em</a></li> <li><a href="/html/tags/html_embed_tag.cfm">embed</a></li> <li><a href="/html/tags/html_fieldset_tag.cfm">fieldset</a></li> <li class="new"><a href="/html/tags/html_figcaption_tag.cfm">figcaption</a></li> <li class="new"><a href="/html/tags/html_figure_tag.cfm">figure</a></li> <li class="new"><a href="/html/tags/html_footer_tag.cfm">footer</a></li> <li><a href="/html/tags/html_form_tag.cfm">form</a></li> <li><a href="/html/tags/html_h1_tag.cfm">h1</a></li> <li><a href="/html/tags/html_h2_tag.cfm">h2</a></li> <li><a href="/html/tags/html_h3_tag.cfm">h3</a></li> <li><a href="/html/tags/html_h4_tag.cfm">h4</a></li> <li><a href="/html/tags/html_h5_tag.cfm">h5</a></li> <li><a href="/html/tags/html_h6_tag.cfm">h6</a></li> <li><a href="/html/tags/html_head_tag.cfm">head</a></li> <li class="new"><a href="/html/tags/html_header_tag.cfm">header</a></li> <li class="new"><a href="/html/tags/html_hgroup_tag.cfm">hgroup</a></li> <li><a href="/html/tags/html_hr_tag.cfm">hr</a></li> <li><a href="/html/tags/html_html_tag.cfm">html</a></li> <li><a href="/html/tags/html_i_tag.cfm">i</a></li> <li><a href="/html/tags/html_iframe_tag.cfm">iframe</a></li> <li><a href="/html/tags/html_img_tag.cfm">img</a></li> <li><a href="/html/tags/html_input_tag.cfm">input</a></li> <li><a href="/html/tags/html_ins_tag.cfm">ins</a></li> <li><a href="/html/tags/html_kbd_tag.cfm">kbd</a></li> <li><a href="/html/tags/html_label_tag.cfm">label</a></li> <li><a href="/html/tags/html_legend_tag.cfm">legend</a></li> <li><a href="/html/tags/html_li_tag.cfm">li</a></li> <li><a href="/html/tags/html_link_tag.cfm">link</a></li> <li class="new"><a href="/html/tags/html_main_tag.cfm">main</a></li> <li><a href="/html/tags/html_map_tag.cfm">map</a></li> <li class="new"><a href="/html/tags/html_mark_tag.cfm">mark</a></li> <li><a href="/html/tags/html_menu_tag.cfm">menu</a></li> <li><a href="/html/tags/html_meta_tag.cfm">meta</a></li> <li class="new"><a href="/html/tags/html_meter_tag.cfm">meter</a></li> <li class="new"><a href="/html/tags/html_nav_tag.cfm">nav</a></li> <li><a href="/html/tags/html_noscript_tag.cfm">noscript</a></li> <li><a href="/html/tags/html_object_tag.cfm">object</a></li> <li><a href="/html/tags/html_ol_tag.cfm">ol</a></li> <li><a href="/html/tags/html_optgroup_tag.cfm">optgroup</a></li> <li><a href="/html/tags/html_option_tag.cfm">option</a></li> <li class="new"><a href="/html/tags/html_output_tag.cfm">output</a></li> <li><a href="/html/tags/html_p_tag.cfm">p</a></li> <li><a href="/html/tags/html_param_tag.cfm">param</a></li> <li><a href="/html/tags/html_picture_tag.cfm">picture</a></li> <li><a href="/html/tags/html_pre_tag.cfm">pre</a></li> <li class="new"><a href="/html/tags/html_progress_tag.cfm">progress</a></li> <li><a href="/html/tags/html_q_tag.cfm">q</a></li> <li class="new"><a href="/html/tags/html_rb_tag.cfm">rb</a></li> <li class="new"><a href="/html/tags/html_rp_tag.cfm">rp</a></li> <li class="new"><a href="/html/tags/html_rt_tag.cfm">rt</a></li> <li class="new"><a href="/html/tags/html_rtc_tag.cfm">rtc</a></li> <li class="new"><a href="/html/tags/html_ruby_tag.cfm">ruby</a></li> <li><a href="/html/tags/html_s_tag.cfm">s</a></li> <li><a href="/html/tags/html_samp_tag.cfm">samp</a></li> <li><a href="/html/tags/html_script_tag.cfm">script</a></li> <li class="new"><a href="/html/tags/html_section_tag.cfm">section</a></li> <li><a href="/html/tags/html_select_tag.cfm">select</a></li> <li><a href="/html/tags/html_slot_tag.cfm">slot</a></li> <li><a href="/html/tags/html_small_tag.cfm">small</a></li> <li class="new"><a href="/html/tags/html_source_tag.cfm">source</a></li> <li><a href="/html/tags/html_span_tag.cfm">span</a></li> <li><a href="/html/tags/html_strong_tag.cfm">strong</a></li> <li><a href="/html/tags/html_style_tag.cfm">style</a></li> <li><a href="/html/tags/html_sub_tag.cfm">sub</a></li> <li class="new"><a href="/html/tags/html_summary_tag.cfm">summary</a></li> <li><a href="/html/tags/html_sup_tag.cfm">sup</a></li> <li><a href="/html/tags/html_table_tag.cfm">table</a></li> <li><a href="/html/tags/html_tbody_tag.cfm">tbody</a></li> <li><a href="/html/tags/html_td_tag.cfm">td</a></li> <li class="new"><a href="/html/tags/html_template_tag.cfm">template</a></li> <li><a href="/html/tags/html_textarea_tag.cfm">textarea</a></li> <li><a href="/html/tags/html_tfoot_tag.cfm">tfoot</a></li> <li><a href="/html/tags/html_th_tag.cfm">th</a></li> <li><a href="/html/tags/html_thead_tag.cfm">thead</a></li> <li class="new"><a href="/html/tags/html_time_tag.cfm">time</a></li> <li><a href="/html/tags/html_title_tag.cfm">title</a></li> <li><a href="/html/tags/html_tr_tag.cfm">tr</a></li> <li class="new"><a href="/html/tags/html_track_tag.cfm">track</a></li> <li><a href="/html/tags/html_u_tag.cfm">u</a></li> <li><a href="/html/tags/html_ul_tag.cfm">ul</a></li> <li><a href="/html/tags/html_var_tag.cfm">var</a></li> <li class="new"><a href="/html/tags/html_video_tag.cfm">video</a></li> <li class="new"><a href="/html/tags/html_wbr_tag.cfm">wbr</a></li> <li><a href="/html/tags/html_5_global_attributes.cfm">HTML5 Global Attributes</a></li> <li><a href="/html/tags/html_5_event_handler_content_attributes.cfm">HTML5 Events</a></li> </ul> </li> <li> <h3><a href="/html/">HTML Reference</a></h3> <ul> <li><a href="/html/tags/" title="Alphabetical list of all HTML tags">HTML Tags</a></li> <li><a href="/html/codes/" title="">HTML Codes</a></li> <li><a href="/html/templates/" title="">HTML Templates</a></li> <li><a href="/html/html_editors/">HTML Editors</a></li> <li><a href="/html/tutorial/" title="">HTML Tutorial</a></li> <li><a href="/create-a-website/" title="">Create a Website</a></li> <li><a href="/character_sets/">Character Set Reference</a></li> </ul> </li> </ul> </nav> <div class="ad ad-left"> <!-- GAM 71161633/QCKIT_quackit/article_vrec_2 --> <div data-fuse="23059511712"></div> </div> </div> <div class="ads"> <div class="ad ad-right"> <!-- GAM 71161633/QCKIT_quackit/article_vrec_1 --> <div data-fuse="23059883626"></div> </div> </div> </div> <div class="searchbox-bottom"> <form action="/search/" id="cse-search-box-bottom" class="site-search"> <div> <input type="hidden" name="cx" value="partner-pub-6331358926293806:npmuvy-i8kk"> <input type="hidden" name="cof" value="FORID:10"> <input type="hidden" name="ie" value="ISO-8859-1"> <input type="text" name="q" size="30" class="site-search-input"> <button type="submit" name="sa" class="site-search-button"><i class="fa fa-search"></i></button> </div> </form> <script src="//cse.google.com/cse/brand?form=cse-search-box-bottom&lang=en"></script> </div> <footer> <p class="about"><a href="/"><i class="fa fa-home"></i> Home</a> | <a href="/about.cfm" rel="nofollow">About</a> | <a href="/contact.cfm" rel="nofollow">Contact</a> | <a href="/terms_of_use.cfm" rel="nofollow">Terms of Use</a> | <a href="/privacy_policy.cfm" rel="nofollow">Privacy Policy</a></p> <p>© Copyright 2000 - 2025 Quackit.com </p> </footer> <script src="/common/js/spectrum/spectrum.js"></script> <script src="/common/js/lightbox2-master/dist/js/lightbox.min.js" charset="utf-8"></script> <script> $(document).ready(function(){ $( "#site-nav-toggler" ).click(function() { $( "#site-nav" ).toggle( "slow" ); }); }); </script> <script> $(function(){var a=window.location.href;$(".sidebar nav a").each(function(){a==this.href&&$(this).closest("li").addClass("selected")})}); </script> </body> </html>