Note that there are some explanatory texts on larger screens.

plurals
  1. POShould we put <input> inside <label>?
    primarykey
    data
    text
    <p>I saw 2 different method on same form example:</p> <p>on <a href="http://www.alistapart.com/articles/prettyaccessibleforms/" rel="noreferrer">http://www.alistapart.com/articles/prettyaccessibleforms/</a> why they are using 2 method in first <code>fieldset</code> they are keeping <code>input</code> after <code>label</code>and in 2nd <code>fieldset</code> they are keeping <code>input</code> after <code>label</code>. Why?</p> <pre><code>&lt;fieldset&gt; &lt;legend&gt;Delivery Details&lt;/legend&gt; &lt;ol&gt; &lt;li&gt; &lt;label for="name"&gt;Name&lt;em&gt;*&lt;/em&gt;&lt;/label&gt; &lt;input id="name" /&gt; &lt;/li&gt; &lt;li&gt; &lt;label for="address1"&gt;Address&lt;em&gt;*&lt;/em&gt;&lt;/label&gt; &lt;input id="address1" /&gt; &lt;/li&gt; &lt;li&gt; &lt;label for="address2"&gt;Address 2&lt;/label&gt; &lt;input id="address2" /&gt; &lt;/li&gt; &lt;li&gt; &lt;label for="town-city"&gt;Town/City&lt;/label&gt; &lt;input id="town-city" /&gt; &lt;/li&gt; &lt;li&gt; &lt;label for="county"&gt;County&lt;em&gt;*&lt;/em&gt;&lt;/label&gt; &lt;input id="county" /&gt; &lt;/li&gt; &lt;li&gt; &lt;label for="postcode"&gt;Postcode&lt;em&gt;*&lt;/em&gt;&lt;/label&gt; &lt;input id="postcode" /&gt; &lt;/li&gt; &lt;li&gt; &lt;fieldset&gt; &lt;legend&gt;Is this address also your invoice » address?&lt;em&gt;*&lt;/em&gt;&lt;/legend&gt; &lt;label&gt;&lt;input type="radio" » name="invoice-address" /&gt; Yes&lt;/label&gt; &lt;label&gt;&lt;input type="radio" » name="invoice-address" /&gt; No&lt;/label&gt; &lt;/fieldset&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/fieldset&gt; </code></pre> <p>why they are sometime keeping <code>input</code> after <code>label</code> and sometime inside?</p> <p>Update:</p> <p>here <a href="http://www.usability.com.au/resources/forms.cfm" rel="noreferrer">http://www.usability.com.au/resources/forms.cfm</a> they are also keeping <code>input</code> after <code>label</code> not inside</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload