<?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>devexp &#187; attributes</title>
	<atom:link href="http://www.devexp.eu/tag/attributes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devexp.eu</link>
	<description>DEVelopment EXPerience, shared with the world!</description>
	<lastBuildDate>Fri, 28 Oct 2011 12:07:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>basic tips and tricks: 3.Forgotten form attributes</title>
		<link>http://www.devexp.eu/2009/01/16/basic-tips-and-tricks-3forgotten-form-attributes/</link>
		<comments>http://www.devexp.eu/2009/01/16/basic-tips-and-tricks-3forgotten-form-attributes/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 13:53:22 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=273</guid>
		<description><![CDATA[A lot of people create easy forms but don’t think it trough before designing the page. I listed 5 useful attributes/elements a lot of people intend to forget or simply don’t know why they are using it. Use get or &#8230; <a href="http://www.devexp.eu/2009/01/16/basic-tips-and-tricks-3forgotten-form-attributes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>A lot of people create easy forms but don’t think it trough before designing the page. I listed 5 useful attributes/elements a lot of people intend to forget or simply don’t know why they are using it.</p>
<p>Use <strong>get or post</strong> to send a form</p>
<p>Get will append the form data to the URL that is set in the action attribute of the form and is used when the form is <a title="idempotent" href="http://en.wikipedia.org/wiki/Idempotent" target="_blank">idempotent</a>. For example on search forms.<br />
Post will not append it to the URL but sent it in the body of the form. It should be used when we are modifying a database or doing a subscription.</p>
<p>What is <strong>enctype</strong>?</p>
<p>This attribute is used to submit the form to the server; it is only needed when using post. Whenever you use a file field in your form you should set the enctype value to multipart/form-data, otherwise it uses the default value application/x-www-form-urlencoded.</p>
<p>Use <strong>tabindex</strong></p>
<p>This creates an order when going from one field to the next using your tab button. When creating complex forms, this might come in quite handy. It creates the opportunity for the developer to indicate the order the form needs to be completed. Every field in the form gets a ‘tabindex’ value starting from 0 with a maximum of 32767.</p>
<p>Connect a <strong>label to a field</strong></p>
<p>It’s always handy to have a label for each input field, so you can click on the label and the cursor automatically gets positioned in the input field. The only thing to do is put a ‘for’ attribute in the label and give it the id of the corresponding field as value. Easy and Handy for users</p>
<p><strong>Fieldset and legend</strong></p>
<p>This allows you to thematically group your form elements. The ‘legend’ element gives you the opportunity to create a title on each fieldset and has to be put in between the fieldset tags. Use css styling to create a nice design for the fieldset.</p>
<p>Greetings K.</p>
<div class="shr-publisher-273"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2009/01/16/basic-tips-and-tricks-3forgotten-form-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

