I am looking for feedback on two questions, based on the simple form snippet 
below. 

<fieldset> 
<legend><b>Personal Details</b></legend> 
<label for="name">Name:</label> 
<input id="name" type="text" name="name" size="30"> <br> 
<label for="id">ID Number:</label> 
<input id="id" type="text" name="id number" size="10"> 
</fieldset> 

Question 1: 
Is it acceptable, or advisable, to use a header tag <h6> in place of the 
<legend> in order to get cross-browsers consistency when dealing with complex 
form styling? How much impact might this have on accessibility, if any? 

Question 2: 
I don't see many folks using the <label> as a wrapper to contain the input. Any 
reason not to do this? It allows for the <br /> to be removed via display: 
block; on the <label> tag as well as allowing users (of most browsers) to click 
on a much larger label to select the accompanying input. 

<fieldset> 
<h6>Personal Details</h6> 
<label for="name">Name: 
<input id="name" type="text" name="name" size="30"> 
</label> 
<label for="id">ID Number: 
<input id="id" type="text" name="id number" size="10"> 
</label> 
</fieldset> 


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to