<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>method attribute Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/method-attribute/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/method-attribute/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 25 Aug 2021 13:13:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Tutorial for Method Attribute in html for php</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-method-attribute-in-html-for-php/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-method-attribute-in-html-for-php/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Wed, 25 Aug 2021 13:13:51 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Attribute Values]]></category>
		<category><![CDATA[method attribute]]></category>
		<category><![CDATA[Method Attribute in html for php]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Tutorial for Method Attribute]]></category>
		<category><![CDATA[Tutorial for Method Attribute in html]]></category>
		<category><![CDATA[Tutorial for Method Attribute in html for php]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[What is Method Attribute]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8291</guid>

					<description><![CDATA[<p>What is Method Attribute? The HTTP method used to transfer data while submitting the form is specified using the HTML [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-method-attribute-in-html-for-php/">Tutorial for Method Attribute in html for php</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">What is Method Attribute?</h3>



<p class="wp-block-paragraph">The HTTP method used to transfer data while submitting the form is specified using the HTML form> method Attribute. The HTTP methods GET and POST are the two types of HTTP methods. With the form> element, the method attribute can be used.</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://image.slidesharecdn.com/html-4-171222054039/95/html-4-5-638.jpg?cb=1513921271" alt="Html 4"/></figure></div>



<p class="wp-block-paragraph"><strong>Attribute Values:</strong></p>



<ul class="wp-block-list"><li><strong>GET:-</strong> When using the GET method, the form data are shown in the address bar of the new browser tab once the form is submitted. It is restricted to around 3000 characters in length. It&#8217;s just good for non-sensitive data, not for sensitive data.</li></ul>



<div class="wp-block-image"><figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="760" height="385" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-180.png" alt="" class="wp-image-8297" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-180.png 760w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-180-300x152.png 300w" sizes="(max-width: 760px) 100vw, 760px" /></figure></div>



<ul class="wp-block-list"><li><strong>POST:</strong>&#8211; After submitting a form with the post method, the form values will not appear in the address bar of the new browser tab, as they did with the GET method. The form data is appended to the body of the HTTP request. It is unrestricted in terms of size. The outcome of this technique is not bookmarkable.</li></ul>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="734" height="371" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-181.png" alt="" class="wp-image-8298" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-181.png 734w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-181-300x152.png 300w" sizes="(max-width: 734px) 100vw, 734px" /></figure></div>



<p class="wp-block-paragraph"><strong>Which are the Supported Tags:</strong>&#8211;</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color"><strong>&lt;form></strong></span></code></pre>



<p class="wp-block-paragraph"><strong>Syntax:</strong>&#8211; </p>



<pre class="wp-block-code"><code><strong><span class="has-inline-color has-vivid-red-color">&lt;form method="get|post"></span></strong></code></pre>



<p class="wp-block-paragraph"><strong>Example 1:</strong>&#8211; This example illustrates the use of GET method attribute.</p>



<script src="https://gist.github.com/AdarshAshwani/a6397de2be76748dba41cce76118f569.js"></script>



<p class="wp-block-paragraph"><strong>Output:-</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="646" height="331" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-178.png" alt="" class="wp-image-8295" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-178.png 646w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-178-300x154.png 300w" sizes="(max-width: 646px) 100vw, 646px" /></figure></div>



<p class="wp-block-paragraph"><strong>Example 2:</strong> This example illustrates the use of the POST method attribute. This method sends the form-data as an HTTP post-transaction. </p>



<script src="https://gist.github.com/AdarshAshwani/1aec93dc36db6c0182e6b32de7cba9c1.js"></script>



<p class="wp-block-paragraph"><strong>Output:-</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="639" height="349" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-179.png" alt="" class="wp-image-8296" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-179.png 639w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-179-300x164.png 300w" sizes="auto, (max-width: 639px) 100vw, 639px" /></figure></div>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-method-attribute-in-html-for-php/">Tutorial for Method Attribute in html for php</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorial-for-method-attribute-in-html-for-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML: Form Tag</title>
		<link>https://www.scmgalaxy.com/tutorials/html-form-tag/</link>
					<comments>https://www.scmgalaxy.com/tutorials/html-form-tag/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Mon, 09 Aug 2021 05:37:09 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[action attribute]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[Enctype Attribute]]></category>
		<category><![CDATA[form tag in html]]></category>
		<category><![CDATA[Get]]></category>
		<category><![CDATA[html form tag]]></category>
		<category><![CDATA[html tag]]></category>
		<category><![CDATA[input tag inside form tag in html]]></category>
		<category><![CDATA[method attribute]]></category>
		<category><![CDATA[min and max]]></category>
		<category><![CDATA[name attribute]]></category>
		<category><![CDATA[novalidate]]></category>
		<category><![CDATA[Post]]></category>
		<category><![CDATA[Text direction(dirname)]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7607</guid>

					<description><![CDATA[<p>HTML forms are used to collect some data from the site visitor. The HTML &#60;form&#62;…..&#60;/form&#62; tag is used to create [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/html-form-tag/">HTML: Form Tag</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">HTML forms are used to collect some data from the site visitor. The HTML &lt;form&gt;…..&lt;/form&gt; tag is used to create an HTML form.</p>



<pre class="wp-block-code"><code>&lt;input&gt;
&lt;textarea&gt;
&lt;button&gt;
&lt;select&gt;
&lt;option&gt;
&lt;optgroup&gt;
&lt;fieldset&gt;
&lt;label&gt;
</code></pre>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Attribute</strong></td><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>accept-charset</td><td>UTF-8</td><td>Specifies the charset used in the submitted form (default: the page charset).</td></tr><tr><td>action</td><td>URL</td><td>Contains a URL that defines where to send the data after submitting the form</td></tr><tr><td>autocomplete</td><td>On (default)<br>Off</td><td>Determines that the browser retains the history of previous values.</td></tr><tr><td>enctype</td><td> (default: is url-encoded)</td><td>specifies how the browser encodes the data before it sends it to the server.</td></tr><tr><td>method</td><td>GET (default)<br>POST</td><td>Specifies how to send the form data to a web server. The data can be sent as URL variables, by using the get method or as HTTP post, by using the post method</td></tr><tr><td>name</td><td>name</td><td>Specifies a name used to identify the form</td></tr><tr><td>novalidate</td><td>novalidate</td><td>Specifies that the browser should not validate the form.</td></tr><tr><td>target</td><td>_self (default)<br>_blank<br>_parent<br>_top<br>framename</td><td>Specifies the target of the address in the action attribute</td></tr></tbody></table></figure>



<h2 class="wp-block-heading"><strong>Input Tag</strong></h2>



<p class="wp-block-paragraph">&lt;input&gt; tag prompts the user to enter data and also request for the information from the web server after submitting the web form.</p>



<pre class="wp-block-code"><code>&lt;form&gt;
	&lt;input&gt;
&lt;/form&gt;
No input end tag in HTML5
</code></pre>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Attribute</strong></td><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>accept</td><td>file_extension<br>audio/*<br>video/*<br>image/*<br>media_type</td><td>Specifies the types of files that the server accepts</td></tr><tr><td>alt</td><td>text</td><td>Specifies an alternate text for an image. only used with type=“image”</td></tr><tr><td>autocomplete</td><td>on<br>off</td><td>It enables or disable autocomplete in &lt;input&gt; tag</td></tr><tr><td>autofocus</td><td>autofocus</td><td>Specifies that an &lt;input&gt; element should automatically get focus when the page loads</td></tr><tr><td>checked</td><td>checked</td><td>Input element should be checked/selected when a web page loads. It is used only with &nbsp;type=”checkbox” and type=”radio”</td></tr><tr><td>dirname</td><td>inputname.dir</td><td>Specifies that the text direction will be submitted</td></tr><tr><td>disabled</td><td>disabled</td><td>Disables the input element when it loads on the client side’s web page, so that user cannot write text in it or select it. This attribute cannot be used with type=“hidden”</td></tr><tr><td>form</td><td>form_id</td><td>Specifies form’s id to which the input field belongs.</td></tr><tr><td>formaction</td><td>URL</td><td>Specifies the URL of the file that will process the input control when the form is submitted</td></tr><tr><td>formenctype</td><td>application/x-www-form-urlencoded<br>multipart/form-data<br>text/plain</td><td>Specifies how the form-data should be encoded when submitting it to the server</td></tr><tr><td>formmethod</td><td>GET<br>POST</td><td>Defines the HTTP method for sending data to the action URL</td></tr><tr><td>formnovalidate</td><td>formnovalidate</td><td>Defines that form elements should not be validated when submitted</td></tr><tr><td>formtarget</td><td>_blank<br>_self<br>_parent<br>_top<br>framename</td><td>Specifies where to display the response that is received after submitting the form</td></tr><tr><td>height</td><td>pixels</td><td>Indicates the height of an input field</td></tr><tr><td>list</td><td>Id of a datalist</td><td>Contains the id of the &lt;datalist&gt; tag where a datalist element contains various options for an input field</td></tr><tr><td>max</td><td>number<br>date</td><td>Specifies the maximum value for an &lt;input&gt; element<br>number, range, date, datetime-local, month, time and week.</td></tr><tr><td>maxlength<br>minlength</td><td>number</td><td>Specifies the maximum/minimum number of characters allowed in a text field.</td></tr><tr><td>min</td><td>number<br>date</td><td>Specifies a minimum value for an &lt;input&gt; element<br>number, range, date, datetime-local, month, time and week.</td></tr><tr><td>multiple</td><td>multiple</td><td>Indicates whether the user is allowed to enter more than one value</td></tr><tr><td>name</td><td>text</td><td>Defines a unique name for the input element.</td></tr><tr><td>pattern</td><td>regexp</td><td>Specifies a regular expression that an &lt;input&gt; element&#8217;s value is checked against</td></tr><tr><td>placeholder</td><td>text</td><td>Specifies a short hint that describes the expected value<br>text, search, url, tel, email, and password</td></tr><tr><td>readonly</td><td>readonly</td><td>Indicates that the value of this field cannot be modified.</td></tr><tr><td>required</td><td>required</td><td>Specifies that an input field must be filled out before submitting the form</td></tr><tr><td>size</td><td>number</td><td>Specifies the width of the control. If type=&#8221;text&#8221; or type=&#8221;password&#8221; this refers to the width in characters. Otherwise it&#8217;s in pixels.</td></tr><tr><td>src</td><td>URL</td><td>Defines the URL of the image to display. It can be used only with type=“image”</td></tr><tr><td>step</td><td>number</td><td>Specifies the legal number intervals for an input field</td></tr><tr><td>type</td><td>button<br>checkbox<br>color<br>date&nbsp;<br>datetime&nbsp;<br>datetime-local&nbsp;<br>email&nbsp;<br>file<br>hidden<br>image<br>month&nbsp;<br>number&nbsp;<br>password<br>radio<br>range&nbsp;<br>reset<br>search<br>submit<br>tel<br>text<br>time&nbsp;<br>url<br>week</td><td>Indicates the type of the input element. The default value is text.</td></tr><tr><td>value</td><td>text</td><td>Specifies the value of an &lt;input&gt; element</td></tr><tr><td>width</td><td>pixels</td><td>Indicates the width of an input field</td></tr></tbody></table></figure>



<h2 class="wp-block-heading"><strong>Type Attribute</strong></h2>



<p class="wp-block-paragraph">It indicates the type of input element. It’s an empty tag. The default value is text.</p>



<p class="wp-block-paragraph">Ex: &#8211;</p>



<pre class="wp-block-code"><code>&lt;input&gt; 
&lt;input type=“text”&gt;
</code></pre>



<ul class="wp-block-list"><li>Text – It defines a single-line text field.                                                                                           <strong>&lt;input type=“text”&gt;</strong></li><li>Password – A password field is like text field, the difference being that this control hides each typed character by displaying an asterisk(*) or bullets(●) instead of the character itself.                         <strong>&lt;input type=“password”&gt;</strong></li><li>Button – This is used to add a button on a web form to activate a script when an user click the button.                                                                                                                                             <strong>&lt;input type=“button”&gt;</strong></li><li>Email – This field is used to add an email address or a list of email address to a form, where type=“email” is a value for the input type. The input format should be an email like example@gmail.com else it will prompt an error.                                                                           <strong>&lt;input type=“email”&gt;</strong></li><li>Check Box – A check box is a small box, which when selected includes a checkmark. It is used to allow the user to select one or more than one of the options available on a web page. An User can select or clear the check box by clicking it.                                                                                                      <strong>&lt;input type=“checkbox”&gt;</strong></li><li>Radio Button – A radio button is used to create a series of options of which only one can be selected. It is displayed as a circle which when selected, displays a dot in the middle.                                    <strong>&lt;input type=“radio”&gt;</strong></li><li>•URL &#8211; The URL field is used to enter only the web addresses, in their correct format. If the URL is not entered in the correct format then the URL field validates the text field to enter web address.    <strong>&lt;input type=“url”&gt;</strong>                                                                                                                       Autofocus – helps in keeping the focus of mouse pointer on the input field.                                Pattern – defines the regular expression of the text that should be entered in the text field.</li><li>Search Box – This is used to add a search box to a form.                                                                   <strong>&lt;input type=“search”&gt;</strong></li><li>Tel &#8211; The tel type represents a one-line plain-text edit for entering a telephone number.                      <strong>&lt;input type=“tel”&gt;</strong></li><li>Range &#8211; Range input represents the input of limited range numerical values.                                     <strong>&lt;input type=“range”&gt;</strong></li><li>Number &#8211; Number is used to validate the textbox only if the value within the field is a numerical value.                                                                                                                                                <strong>&lt;input type=“number”&gt;</strong></li><li>File – This is used to upload a file on a web page. You also need to set the enctype=“multipart/form-data”.                                                                                                                                                <strong>&lt;input type=“file”&gt;</strong></li><li>Image – It represents either an image from which the UA enables a user to interactively select a pair of coordinates and submit the form, or alternatively a button from which the user can submit the form.                                                                                                                                                         <strong>&lt;input type=“image”&gt;</strong></li><li>Hidden – A hidden control stores the data that is not visible to the user on a web page. This control is used to submit some information, which can not be edited by user.                                                     <strong>&lt;input type=“hidden”&gt;</strong></li><li>Submit – A submit button is used to transfer form data to the URL specified in the &lt;form action&gt; tag.<strong>&lt;input type=“submit”&gt;</strong></li><li>Reset Button – A reset button helps user to clear all the data that they have entered in the text fields.<strong>&lt;input type=“reset”&gt;</strong></li><li>Date – This is used for input fields that should contain a date.                                                      <strong>&lt;input type=“date”&gt;</strong></li><li>Time – It allows the user to select a time.                                                                                        <strong>&lt;input type=“time”&gt;</strong></li><li><span class="has-inline-color has-black-color">DateTime</span> – It allows the user to select&nbsp; date and time.                                                                             <strong>&lt;input type=“datetime”&gt;</strong></li><li>Datetime-local – It allows the user to select a date and time.                                                         <strong>&lt;input type=“datetime-local”&gt;</strong></li><li>Month – It allows the user to select a month and year.                                                                  <strong>&lt;input type=“month”&gt;</strong></li><li>Week – It allows the user to select a week and year.                                                                         <strong>&lt;input type=“week”&gt;</strong></li><li>Color – It is used for input fields that should contain a color.                                                         <strong>&lt;input type=“color”&gt;</strong></li></ul>



<h2 class="has-text-align-center wp-block-heading"><strong>accept-charset Attribute</strong></h2>



<p class="wp-block-paragraph">It specifies the character encodings that are to be used for the form submission.</p>



<p class="wp-block-paragraph"><strong>ISO-8859-1</strong> Character encoding for the Latin alphabet</p>



<p class="wp-block-paragraph"><strong>UTF-8</strong> Character encoding for Unicode</p>



<pre class="wp-block-code"><code>&lt;form accept-charset=“UTF-8”&gt;
</code></pre>



<h2 class="has-text-align-center wp-block-heading"><strong>Action Attribute</strong></h2>



<p class="wp-block-paragraph">It contains a URL that defines where to send the data after submitting the form. It specifies the physical address of the server to which the user data should be redirected at the click of the submit button.       action=http://www.something.com/something.html                                                            action=“page.html”                                                                                                                   action=“gotform.php”                                                                                                         action=“example.asp”</p>



<p class="wp-block-paragraph">If the action attribute is omitted, the action is set to the current page.</p>



<h2 class="has-text-align-center wp-block-heading"><strong>Autocomplete</strong></h2>



<p class="wp-block-paragraph">On – The browser will automatically complete values based on values that the user has entered before.         Off – User need to write all values each time they fill the form                                                            &lt;form autocomplete=“on”&gt;</p>



<h2 class="has-text-align-center wp-block-heading"><strong>enctype Attribute</strong></h2>



<p class="wp-block-paragraph">It specifies how the browser encodes the data before it sends it to the server.</p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>application/x-www-form-urlencoded</td><td>All characters are encoded before sent (spaces are converted to &#8220;+&#8221; symbols, and special characters are converted to ASCII HEX values)</td></tr><tr><td>multipart/form-data</td><td>No characters are encoded. This value is required when you are using forms that have a file upload control</td></tr><tr><td>text/plain</td><td>Spaces are converted to &#8220;+&#8221; symbols, but no special characters are encoded</td></tr></tbody></table></figure>



<pre class="wp-block-code"><code>&lt;form enctype=“multipart/form-data”&gt;
</code></pre>



<h2 class="has-text-align-center wp-block-heading"><strong>Method Attribute</strong></h2>



<p class="wp-block-paragraph">It Specifies how to send the form data to a web server. The data can be sent as URL variables, by using the get method or as HTTP post, by using the post method.</p>



<ul class="wp-block-list"><li>GET(default)</li><li>POST</li></ul>



<h2 class="has-text-align-center wp-block-heading">GET</h2>



<p class="wp-block-paragraph">GET sends the data as part of the URL.</p>



<ul class="wp-block-list"><li>Appends form-data into the URL in name/value pairs.</li><li>The length of a URL is limited 2048 characters.</li><li>Never use GET method if you have password or other sensitive information to be sent to the server.</li><li>Useful for form submissions where a user want to bookmark the result.</li><li>GET is better for non-secure data, like query strings in Google.</li><li>GET can&#8217;t be used to send binary data, ex:-&nbsp; images or word documents.</li></ul>



<pre class="wp-block-code"><code>&lt;form action=“some.php” method = “GET”&gt;
</code></pre>



<p class="wp-block-paragraph">If we use an invalid value for the method attribute of the &lt;form&gt; tag, the browser will use the default value GET.</p>



<h2 class="has-text-align-center wp-block-heading"><strong>POST</strong></h2>



<p class="wp-block-paragraph">HTTP POST requests supply additional data from the client (browser) to the server in the message body.</p>



<ul class="wp-block-list"><li>Appends form-data inside the body of the HTTP request (data is not shown is in URL).</li><li>The POST method does not have any restriction on data size to be sent.</li><li>Form submissions with POST cannot be bookmarked.</li><li>The POST method can be used to send ASCII as well as binary data. Ex:-&nbsp; image and word documents etc.</li><li>The data sent by POST method goes through HTTP header so security depends on HTTP protocol. By using Secure HTTP you can make sure that your information is secure.</li><li>POST is a little safer than GET because the parameters are not stored in browser history or in web server logs.</li></ul>



<pre class="wp-block-code"><code>&lt;form action=“some.php” method = “POST”&gt;
</code></pre>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td></td><td><strong>GET</strong></td><td><strong>POST</strong></td></tr><tr><td>BACK button/Reload</td><td>Harmless</td><td>Data will be re-submitted (the browser should alert the user that the data are about to be re-submitted)</td></tr><tr><td>Bookmarked</td><td>Can be bookmarked</td><td>Cannot be bookmarked</td></tr><tr><td>Cached</td><td>Can be cached</td><td>Not cached</td></tr><tr><td>Encoding type</td><td>application/x-www-form-urlencoded</td><td>application/x-www-form-urlencoded or multipart/form-data. Use multipart encoding for binary data</td></tr><tr><td>History</td><td>Parameters remain in browser history</td><td>Parameters are not saved in browser history</td></tr><tr><td>Restrictions on data type</td><td>Only ASCII characters allowed</td><td>No restrictions. Binary data is also allowed</td></tr><tr><td>Visibility</td><td>Data is visible to everyone in the URL</td><td>Data is not displayed in the URL</td></tr></tbody></table></figure>



<h2 class="has-text-align-center wp-block-heading"><strong>Name&nbsp; Attribute</strong></h2>



<p class="wp-block-paragraph">Specifies a name used to identify the form.                                                                                                  It is Used to give a name to the control which is sent to the server to be recognized and get the value.                                                                             name=“lastname”</p>



<h2 class="has-text-align-center wp-block-heading"><strong>novalidate</strong></h2>



<p class="wp-block-paragraph">If we use novalidate attribute in form tag then the validation will not take place, even if there is a required filed.</p>



<pre class="wp-block-code"><code>&lt;form novalidate&gt;
&lt;form novalidate=“novalidate”&gt; 
&lt;form novalidate=“true”&gt; 
</code></pre>



<p class="wp-block-paragraph">There is one more tag formnovalidate which is used by input tag to speficiy novlidate this particular text or field we will study about this later.</p>



<h2 class="has-text-align-center wp-block-heading"><strong>Text Direction (dirname)</strong></h2>



<p class="wp-block-paragraph">Specifies that the text direction will be submitted</p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>ltr</td><td>Default. Left-to-right text direction</td></tr><tr><td>rtl</td><td>Right-to-left text direction</td></tr><tr><td>auto</td><td>Let the browser figure out the text direction, based on the content</td></tr></tbody></table></figure>



<pre class="wp-block-code"><code>&lt;input type=“text” name=“city” dirname=“city.dir”&gt;
</code></pre>



<h2 class="has-text-align-center wp-block-heading"><strong>Min and Max</strong></h2>



<p class="wp-block-paragraph">number, range, date, datetime-local, month, time and week.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/html-form-tag/">HTML: Form Tag</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/html-form-tag/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
