{"id":842,"date":"2021-12-07T11:55:44","date_gmt":"2021-12-07T11:55:44","guid":{"rendered":"https:\/\/swatilathia.wordpress.com\/?page_id=842"},"modified":"2024-07-29T04:43:02","modified_gmt":"2024-07-29T04:43:02","slug":"html-form-map-tags","status":"publish","type":"page","link":"https:\/\/swatilathia.com\/?page_id=842","title":{"rendered":"HTML  Form &#038; Map Tags"},"content":{"rendered":"<body>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ef6f1d43f03\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ef6f1d43f03\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#HTML_Form\" >HTML Form<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#element\" >&lt;input&gt; element<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#TextField_Control\" >TextField Control\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Password_Field_Control\" >Password Field Control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Number_Control\" >Number Control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Radio_Button_Control\" >Radio Button Control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Checkbox_Control\" >Checkbox Control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Button_Control\" >Button Control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Submit_button_Control\" >Submit button Control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Reset_Button_Control\" >Reset Button Control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Select_Control\" >Select Control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Control\" >&lt;textarea&gt; Control<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Control-2\" >&lt;map&gt; Control<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/swatilathia.com\/?page_id=842\/#Control-3\" >&lt;area&gt; Control<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"html-form\"><span class=\"ez-toc-section\" id=\"HTML_Form\"><\/span><strong>HTML Form<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>An HTML form is a section of a document that contains controls such as text fields, numeric fields, password fields, Date &amp; Time fields, check boxes, radio buttons, submit button, reset button, etc.<\/li>\n\n\n\n<li>It helps the user to enter data that is to be sent to the server for processing such as name, email address, password, phone number, date of birth, time, gender, selection menu etc.<\/li>\n\n\n\n<li>HTML forms are used to get the data of the user to save or store it in database<\/li>\n\n\n\n<li>For example: If a user want to buy some products on internet(from online sites), the user must fill the form such as name, shipping address and credit\/debit card details so that product can be sent to the given address.<\/li>\n<\/ul>\n\n\n\n<p><strong>HTML Form Syntax<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;form action=\"URL\" method=\"get or post\"&gt;\n\/\/input controls e.g. textfield, textarea, radiobutton, button \n&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li class=\"has-medium-font-size\"><strong>Attributes of &lt;Form&gt;<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>Name: <\/strong>The name of the form<\/li>\n\n\n\n<li><strong>Action: <\/strong>The URL that processes the form submission<\/li>\n\n\n\n<li><strong>Method: <\/strong>The HTTP method to submit the form with two possible values:<\/li>\n\n\n\n<li><strong>post:<\/strong> The POST method; form data sent as the request body.<\/li>\n\n\n\n<li><strong>get:<\/strong> The GET method; form data appended to the action URL with a ? separator.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"input-element\"><span class=\"ez-toc-section\" id=\"element\"><\/span><strong>&lt;input&gt; element<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>The HTML &lt;input&gt; element is basic form element.<\/li>\n\n\n\n<li>It is used to create the fields which takes input from user.<\/li>\n\n\n\n<li>There are different kinds of form fields to get different types of value from user<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Example: text field<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;body&gt;\u00a0\n\u00a0 &lt;form&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0 Enter your name\u00a0 &lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0 &lt;input type=\"text\" name=\"username\" value=\u201dHJDOSHI\u201d&gt;\u00a0\n\u00a0 &lt;\/form&gt;\u00a0\n&lt;\/body&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>In above example, we have used textfield control.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"textfield-control\"><span class=\"ez-toc-section\" id=\"TextField_Control\"><\/span><strong>TextField Control\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>The type=\u201dtext\u201d attribute of input tag creates textfield control also known as single line textfield control.<\/li>\n\n\n\n<li>The name attribute is optional, but it is required for the server side component such as JSP, ASP, PHP etc.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;form&gt;\u00a0\n\u00a0\u00a0\u00a0 First Name: &lt;input type=\"text\" name=\"firstname\"&gt; &lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0 Last Name:\u00a0 &lt;input type=\"text\" name=\"lastname\"&gt; &lt;br&gt;\u00a0\n\u00a0&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Value: <\/strong>It is a string that contains the current value of the text entered into the text field.<\/li>\n\n\n\n<li><strong>Maxlength: <\/strong>It indicates maximum number of characters the user can enter into the text field.<\/li>\n\n\n\n<li><strong>Minlength: <\/strong>It indicates minimum number of characters the user can enter into the text field.<\/li>\n\n\n\n<li><strong>Size: <\/strong>The size attribute is a numeric value indicating how many characters wide the input field should be.<\/li>\n\n\n\n<li>The value must be a number greater than zero, and the default value is 20.<\/li>\n\n\n\n<li>Since character widths vary, this may or may not be exact and should not be relied upon to be so; the resulting input may be narrower or wider than the specified number of characters, depending on the characters and the font<\/li>\n\n\n\n<li><strong>Placeholder: <\/strong>It is a string that provides a brief hint to the user as to what kind of information is expected in the field.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Example: <\/strong>State: &lt;input type=\u201dtext\u201d name=\u201dstate\u201d placeholder=\u201dGujarat, Maharashtra, Rajasthan\u2026\u201d&gt;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Making input required:<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>You can use the required attribute as an easy way of making entering a value required before form submission is allowed<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;form&gt;\nEnter Your Name:&lt;br&gt;\n&lt;input type=\"text\" name=\"txtname\" required&gt;\n&lt;input type=submit&gt;\n&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Disabled: <\/strong>It prevents the value of the element to be sent when the form is submitted.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;form&gt;\nEnter Your Name:&lt;br&gt;\n&lt;input type=\"text\" name=\"txtname\" disabled&gt;\n&lt;input type=submit&gt;\n&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Readonly: <\/strong>A Boolean attribute which, if present, indicates that the user should not be able to edit the value of the input<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input type=\u201dtext\u201d name=\u201dtxtname\u201d value=\u201dHJDOSHI\u201d readonly&gt;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Tabindex:<\/strong> It is a global attribute indicates that its element can be focused, and where it participates in sequential keyboard navigation. It has integer value.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;input type=\u201dtext\u201d tabindex=2&gt;&lt;br&gt;\n&lt;input type=\u201dtext\u201d tabindex=1&gt;&lt;br&gt;\n&lt;input type=\u201dtext\u201d tabindex=4&gt;&lt;br&gt;\n&lt;input type=\u201dtext\u201d tabindex=3&gt;&lt;br&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Accesskey: <\/strong>It is a short cut to access any control with the use of \u201calt\u201d + other alphabet key.<\/li>\n\n\n\n<li>&lt;input type=\u201dtext\u201d accesskey=\u201da\u201d&gt;&lt;br&gt;<\/li>\n\n\n\n<li>Press alt+a to directly move to the textbox control.<\/li>\n\n\n\n<li><strong>Title: <\/strong>It is a global attribute valid for all elements, including all input types, containing a text representing advisory information related to the element it belongs to.<\/li>\n\n\n\n<li>Name : &lt;input type=\u201dtext\u201d title=\u201dWrite Your Name Here\u201d&gt;&lt;br&gt;<\/li>\n\n\n\n<li><strong>Autofocus:<\/strong> It instructs the browser to set the focus to this control when the document has finished loading<\/li>\n\n\n\n<li>Name : &lt;input type=\u201dtext\u201d name=\u201dtxt1\u201d autofocus&gt;&lt;br&gt;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"password-field-control\"><span class=\"ez-toc-section\" id=\"Password_Field_Control\"><\/span><strong>Password Field Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input&gt; elements of type password provide a way for the user to securely enter a password.<\/li>\n\n\n\n<li>The password is not visible to the user in password field control.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;form&gt;\u00a0\n\u00a0\u00a0\u00a0 Enter Password:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;input type=\"password\" name=\"password\"&gt;\n&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Value: <\/strong>The value attribute contains a string whose value is the current contents of the text editing control being used to enter the password.<\/li>\n\n\n\n<li><strong>Maxlength: <\/strong>The maximum number of characters the user can enter into the password field<\/li>\n\n\n\n<li><strong>Minlength: <\/strong>The minimum number of characters the user can enter into the password field<\/li>\n\n\n\n<li><strong>Size: <\/strong>The size attribute is a numeric value indicating how many characters wide the input field should be.<\/li>\n\n\n\n<li><strong>Placeholder: <\/strong>It is a string that provides a brief hint to the user as to what kind of information is expected in the field.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Making input required:<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>You can use the required attribute as an easy way of making entering a value required (for password) before form submission is allowed.<\/li>\n\n\n\n<li><strong>Readonly: <\/strong>A Boolean attribute which, if present, indicates that the user should not be able to edit the value of the input.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"number-control\"><span class=\"ez-toc-section\" id=\"Number_Control\"><\/span><strong>Number Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input&gt; elements of type number are used to let the user enter a number.<\/li>\n\n\n\n<li>They include built-in validation to reject non-numerical entries.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input type=\u201dnumber\u201d&gt;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Value:<\/strong> A Number representing the value of the number entered into the input<\/li>\n\n\n\n<li>You can set a default value for the input by including a number inside the value attribute<\/li>\n\n\n\n<li>&lt;input type=number value=\u201d10\u201d&gt;<\/li>\n\n\n\n<li><strong>Max: <\/strong>The maximum value to accept for this input<\/li>\n\n\n\n<li><strong>Min: <\/strong>The minimum value to accept for this input<\/li>\n\n\n\n<li><strong>Placeholder: <\/strong>It is a string that provides a brief hint to the user as to what kind of information is expected in the field.<\/li>\n\n\n\n<li><strong>Step: <\/strong>By default, the up and down buttons provided for you to step the number up and down will step the value up and down by 1. You can change this by providing a step attribute, which takes as its value a number specifying the step amount.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input type=\u201dnumber\u201d step=\u201d10\u201d placeholder=\u201dMultiple of 10\u201d&gt;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>You can also allow decimals here<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input type=number step=\u201d0.01\u2033&gt;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"radio-button-control\"><span class=\"ez-toc-section\" id=\"Radio_Button_Control\"><\/span><strong>Radio Button Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>The radio button is used to select one option from multiple options.<\/li>\n\n\n\n<li>It is used for selection of gender, quiz questions etc.<\/li>\n\n\n\n<li>Use one name for all the radio buttons, to select one radio button at a time.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;form&gt;\u00a0\n\u00a0\u00a0\u00a0 Gender:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;input type=\"radio\" name=\"gender\" value=\"male\"&gt;Male\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;input type=\"radio\" name=\"gender\" value=\"female\"&gt;Female\n&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Value: <\/strong>It is a string containing the radio button\u2019s value. It is used to identify which radio button in a group is selected.<\/li>\n\n\n\n<li><strong>Checked: <\/strong>It indicates that this radio button is the default selected one in the group.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>Select Gender:\n&lt;input type=\"radio\" name=\"contact\" value=\"Female\" checked &gt;Female&lt;br&gt;\u00a0\n&lt;input type=\"radio\" name=\"contact\" value=\"Male\"&gt;Male<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Required: <\/strong>When this boolean attribute is present in any of the radio buttons of a particular group, the browser won\u2019t allow the submission of the form until one of the buttons in the group has been checked.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"checkbox-control\"><span class=\"ez-toc-section\" id=\"Checkbox_Control\"><\/span><strong>Checkbox Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>The checkbox control is used to check multiple options from given check boxes.<\/li>\n\n\n\n<li>These are similar to radio button except it can choose multiple options at a time and radio button can select one button at a time, and its display.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;body&gt;\n&lt;form&gt;\u00a0\nSubject of Interest: &lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;input type=\"checkbox\" name=\"html\" value=\"HTML\"&gt;\u00a0\n\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0HTML &lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;input type=\"checkbox\" name=\"c\" value=\"Language C\"&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Language C&lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;input type=\"checkbox\" name=\"cf\" value=\"Computer Fundamentals\"&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Computer Fundamentals&lt;br&gt;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;input type=\"checkbox\" name=\"cs\" value=\"Communication Skills\"&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Communication Skills\u00a0\n&lt;\/form&gt;\n&lt;\/body&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Value: <\/strong>It is a string representing the value of the checkbox.<\/li>\n\n\n\n<li>This is not displayed on the client-side, but on the server this is the value given to the data submitted with the checkbox\u2019s name.<\/li>\n\n\n\n<li><strong>Checked: <\/strong>It indicates whether or not this checkbox is checked by default, when the page loads.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;form&gt;\u00a0\nSelect Your Subjects :\n&lt;input type=\"checkbox\" name=\"s1\" value=\"HTML\" checked&gt;HTML\u00a0\n&lt;input type=\"checkbox\" name=\"s2\" value=\"CSS\" checked&gt;CSS\n&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Required: <\/strong>When this boolean attribute is present in any of the check boxes of a particular group, the browser won\u2019t allow the submission of the form until one of the radio buttons in the group has been checked.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"button-control\"><span class=\"ez-toc-section\" id=\"Button_Control\"><\/span><strong>Button Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">&lt;input&gt; elements of type button are rendered as simple push buttons, which can be programmed to control custom functionality anywhere on a webpage as required when assigned an event handler function (typically for the click event).<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Value: <\/strong>It contains a string that is used as the button\u2019s label.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input type=\u201dbutton\u201d value=\u201dClick Me\u201d&gt;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"submit-button-control\"><span class=\"ez-toc-section\" id=\"Submit_button_Control\"><\/span><strong>Submit button Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>HTML &lt;input type=\u201dsubmit\u201d&gt; are used to add a submit button on web page.<\/li>\n\n\n\n<li>When user clicks on submit button, then form get submit to the server.\u00a0<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Syntax: <\/strong>&lt;input type=\u201dsubmit\u201d value=\u201dsubmit form\u201d&gt;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>The type = \u201csubmit\u201d, specifying that it is a submit button &amp; the value attribute can be anything which we write on button.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;form&gt;\u00a0\n\u00a0\u00a0\u00a0 Enter name&lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0 &lt;input type=\"text\" name=\"name\"&gt;&lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0 Enter Password&lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0 &lt;input type=\"Password\" name=\"pass\"&gt;&lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0 &lt;input type=\"submit\" value=\"submit form\"&gt;\u00a0\n&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"reset-button-control\"><span class=\"ez-toc-section\" id=\"Reset_Button_Control\"><\/span><strong>Reset Button Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input&gt; elements of type reset are rendered as buttons that resets all of the inputs in the form to their initial values.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>&lt;input type=\u201dreset\u201d value=\u201dReset the form\u201d&gt;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Value: <\/strong>It contains a string that is used as the button\u2019s label.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"select-control\"><span class=\"ez-toc-section\" id=\"Select_Control\"><\/span><strong>Select Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>The &lt;select&gt; HTML element represents a control that provides a menu of options.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;select name=\"subjects\"&gt;\n\u00a0\u00a0\u00a0 &lt;option value=\"\"&gt;--Please choose an option--&lt;\/option&gt;\n\u00a0\u00a0\u00a0 &lt;option value=\"language c\"&gt;Language C&lt;\/option&gt;\n\u00a0\u00a0\u00a0 &lt;option value=\"cf\"&gt;Computer Fundamentals&lt;\/option&gt;\n\u00a0\u00a0\u00a0 &lt;option value=\"html\"&gt;HTML &amp; Networking&lt;\/option&gt;\n&lt;\/select&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li><strong>Name:<\/strong> It is used to represent the name of the associated data point submitted to the server.<\/li>\n\n\n\n<li><strong>&lt;Option&gt;<\/strong>: Each menu option is defined by an &lt;option&gt; element nested inside the &lt;select&gt;.<\/li>\n\n\n\n<li><strong>Value: <\/strong>Each &lt;option&gt; element should have a value attribute containing the data value to submit to the server when that option is selected.<\/li>\n\n\n\n<li><strong>Selected: <\/strong>You can include a selected attribute on an &lt;option&gt; element to make it selected by default when the page first loads.<\/li>\n\n\n\n<li><strong>Multiple: <\/strong>It is used to specify whether multiple options can be selected. It is written inside &lt;select&gt;<\/li>\n\n\n\n<li><strong>Size: <\/strong>It is used to specify how many options should be shown at once. It is written inside &lt;select&gt;.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"textarea-control\"><span class=\"ez-toc-section\" id=\"Control\"><\/span><strong>&lt;textarea&gt; <\/strong>Control<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>The &lt;textarea&gt; tag in HTML is used to insert multiple-line text in a form.<\/li>\n\n\n\n<li>It allows users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.<\/li>\n\n\n\n<li>The size of &lt;textarea&gt; can be specify either using \u201crows\u201d or \u201ccols\u201d attribute or by CSS.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;body&gt;\u00a0\n\u00a0 &lt;form&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Enter your address:&lt;br&gt;\u00a0\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;textarea rows=\"2\" cols=\"20\"&gt;&lt;\/textarea&gt;\u00a0\n\u00a0 &lt;\/form&gt;\u00a0\n&lt;\/body&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>rows and cols attributes to allow you to specify an exact size for the &lt;textarea&gt; to take.<\/li>\n\n\n\n<li>The &lt;textarea&gt; element also accepts several attributes common to form &lt;input&gt;s, such as autocomplete, autofocus, disabled, placeholder, readonly, and required.<\/li>\n\n\n\n<li>Minlength &amp; maxlength attributes restricts the user to enter up to certain number of characters.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"map-control\"><span class=\"ez-toc-section\" id=\"Control-2\"><\/span><strong>&lt;map&gt;<\/strong> Control<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>It is used with &lt;area&gt; elements to define an image map which is a clickable link area.<\/li>\n\n\n\n<li><strong>Name: <\/strong>The name attribute gives the map a name so that it can be referenced.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>&lt;map name=\"primary\"&gt;\n\u00a0 &lt;area shape=\"circle\" coords=\"75,75,75\" href=\"left.html\"&gt;\n\u00a0 &lt;area shape=\"circle\" coords=\"275,75,75\" href=\"right.html\"&gt;\n&lt;\/map&gt;\n&lt;img usemap=\"#primary\" src=\"d:\/image1.png\" alt=\"350 x 150 pic\"&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"area-control\"><span class=\"ez-toc-section\" id=\"Control-3\"><\/span><strong>&lt;area&gt;<\/strong> <strong>Control<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>It defines an area inside an image map that has predefined clickable areas.<\/li>\n\n\n\n<li>An image map allows geometric areas on an image to be associated with hypertext link.<\/li>\n\n\n\n<li>This element is used only within a &lt;map&gt; element.<\/li>\n\n\n\n<li><strong>Alt: <\/strong>A text string alternative to display on browsers that do not display images.<\/li>\n\n\n\n<li><strong>Shape: <\/strong>The shape of the associated hot spot.<\/li>\n\n\n\n<li>The specifications for HTML define the values rect, which defines a rectangular region; circle, which defines a circular region; poly, which defines a polygon; and default, which indicates the entire region beyond any defined shapes.<\/li>\n\n\n\n<li><strong>Coords: <\/strong>The coords attribute details the coordinates of the shape attribute in size, shape, and placement of an &lt;area&gt;.<\/li>\n\n\n\n<li>rect: the value is x1,y1,x2,y2.<\/li>\n\n\n\n<li>Value specifies the coordinates of the top-left and bottom-right corner of the rectangle.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>For example: &lt;area shape=\u201drect\u201d coords=\u201d0,0,253,27\u2033 href=\u201dpage.html\u201d&gt;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>The coords in the above example specify: 0,0 as the top-left corner and 253,27 as the bottom-right corner of the rectangle.<\/li>\n\n\n\n<li>circle: The value is x, y, radius.<\/li>\n\n\n\n<li>Value specifies the coordinates of the circle center and the radius.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>For example: &lt;area shape=\u201dcircle\u201d coords=\u201d130,136,60\u2033 href=\u201dpage.html\u201d&gt;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list has-medium-font-size\">\n<li>poly: The value is x1,y1,x2,y2,..,xn,yn.<\/li>\n\n\n\n<li>Value specifies the coordinates of the edges of the polygon.<\/li>\n\n\n\n<li>If the first and last coordinate pairs are not the same, the browser will add the last coordinate pair to close the polygon<\/li>\n\n\n\n<li>default: defines the entire region<\/li>\n\n\n\n<li><strong>href: <\/strong>The hyperlink target for the area. Its value is a valid URL.<\/li>\n<\/ul>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>HTML Form HTML Form Syntax &lt;input&gt; element TextField Control\u00a0 Password Field Control Number Control Radio Button Control Checkbox Control Button Control Submit button Control Reset Button Control Select Control &lt;textarea&gt; Control &lt;map&gt; Control &lt;area&gt; Control<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"om_disable_all_campaigns":false,"footnotes":""},"class_list":["post-842","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/pages\/842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/swatilathia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=842"}],"version-history":[{"count":30,"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/pages\/842\/revisions"}],"predecessor-version":[{"id":4280,"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/pages\/842\/revisions\/4280"}],"wp:attachment":[{"href":"https:\/\/swatilathia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}