On 14 Apr 2007, at 07:25:29, Stuart Foulstone wrote:
Hi,
Doesn't look like valid code to me.
Stuart
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd"><html>
<head>
<title>blah</title>
</head>
<body>
<form action="">
<div>
<label for="searchBox">
<input type="text" id="searchBox" name="q">
<button type="submit">Search</button>
</label>
</div>
</form>
</body>
NOW it's valid ;-)
On Thu, April 12, 2007 2:07 pm, Nick Fitzsimons wrote:
On 12 Apr 2007, at 13:34:06, Patrick Lauke wrote:
I'm not making assumptions. I'm saying that, for sighted users,
having a text input box with no visible label and a button that
says "Search" immediately next to it is labelling enough.
Surely
<label for="searchBox">
<input type="text" id="searchBox" name="q">
<button type="submit">Search</button>
</label>
would therefore keep everybody happy?
(Or does it matter if focus is switched to the text field as the form
is submitted - sounds like the kind of odd case that A Certain
Browser might get unreasonably petulant about...)
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
--
Stuart Foulstone.
http://www.bigeasyweb.co.uk
BigEasy Web Design
69 Flockton Court
Rockingham Street
Sheffield
S1 4EB
Tel. 07751 413451
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************