|
-
Apr 22nd, 2003, 10:37 AM
#1
Thread Starter
Frenzied Member
label tag and Netscape 4
I'm developing a site that must comply with W3C Accessibility guidelines Priorities 1, 2 & 3 as well as a minimum browser spec of IE 4 and NS4.
I have a good deal of knowledge with browser incompatibilities but one has me stumped...
To comply with the accessability guidelines all text labels for form elements must be enclosed by a label tag like so:
<label for="test">LabelText</label> <input type="text" name="test" id="test" value="Test">
This works fine in all but one case (Netscape 4 doesn't recognise the label tag so usually ignores it) - in this one case the label just doesn't appear at all! Have any of you guys got any ideas why it might be doing this? Code posted below:
<form name="FreeTextSearch" id="FreeTextSearch" action="#" method="POST">
<label for="textfield"><strong>Search the site:</strong></label> <input type="text" name="textfield" id="textfield" value="Enter keywords here" onFocus="resetFormField('FreeTextSearch','textfield','Enter keywords here');"> <input class="gosubmit" type="submit" name="submit" value="Go"><br>
<br>
<a href="/html/advice_family.asp" title="Advice and information on care homes for family and friends">Advice and information</a> on care homes for family and friends<br>
<br>
<a href="/html/advice_pros.asp" title="Information and help for social services professionals">Information and help</a> for social services professionals
</form>
Any help appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|