HighDots Forums  

What does this mean`

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss What does this mean` in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kim
 
Posts: n/a

Default What does this mean` - 12-07-2005 , 07:33 PM






When I run my page through cynthia and I don't get this checkpoint 12.4.
I get this warning:

Associate labels explicitly with their controls.

* Rule: 12.4.1 - Identify all non-hidden INPUT elements that do not
have an explicit LABEL association.
o Failure - INPUT Element, of Type TEXT, at Line: 55, Column:
13 in FORM Element at Line: 51, Column: 8
o Failure - INPUT Element, of Type TEXT, at Line: 59, Column:
13 in FORM Element at Line: 51, Column: 8
o Failure - INPUT Element, of Type TEXT, at Line: 62, Column:
13 in FORM Element at Line: 51, Column: 8
o Failure - INPUT Element, of Type TEXT, at Line: 66, Column:
13 in FORM Element at Line: 51, Column: 8
o Failure - INPUT Element, of Type TEXT, at Line: 75, Column:
13 in FORM Element at Line: 51, Column: 8
* Rule: 12.4.2 - Identify all TEXTAREA elements that do not have an
explicit LABEL association.
o Failure - TEXTAREA Element at Line: 70, Column: 13 in FORM
Element at Line: 51, Column: 8
* Rule: 12.4.3 - Identify all SELECT elements that do not have an
explicit LABEL association.
o No SELECT Elements found within FORM element found at Line:
51, Column: 8.
* Rule: 12.4.4 - Identify all OBJECT elements, within a FORM
element, that do not have an explicit LABEL association.
o No OBJECT Elements found within FORM element found at Line:
51, Column: 8.

What am I supposed to do?

http://mouseriders.dk/tilbud.php

--
kim
--------------------------
http://mouseriders.dk

Reply With Quote
  #2  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: What does this mean` - 12-07-2005 , 08:03 PM






On 07 Dec 2005 in macromedia.dreamweaver, Kim wrote:

Quote:
When I run my page through cynthia and I don't get this checkpoint
12.4. I get this warning:

Associate labels explicitly with their controls.
snip /
What am I supposed to do?

http://mouseriders.dk/tilbud.php
There are two ways to associate labels with inputs:
Wrapping:
<label>Input something here<input name="something"></label>
Attribute:
<label for="something">Input something here</label><input
name="something">

Both work about as well; apparently, Cynthia thinks that the
'Attribute' method works better in adaptive user agents. It also has
the advantage that the label and the input tag don't have to be in the
same container, so that you can do something like:

<tr><td><label for="something">Input something here</label></td>
<td><input name="something"></td>
</tr>

So, giving you the long answer to your short question - add a 'for'
attribute to your label tags.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php


Reply With Quote
  #3  
Old   
Michael Fesser
 
Posts: n/a

Default Re: What does this mean` - 12-07-2005 , 08:03 PM



..oO(Kim)

Quote:
When I run my page through cynthia and I don't get this checkpoint 12.4.
I get this warning:

Associate labels explicitly with their controls.
This means that you should use a 'for' attribute on your labels to
explicitly associate them with their controls. This is required for
outdated browsers like IE which don't support the implicit association
as it is now.

Micha


Reply With Quote
  #4  
Old   
Kim
 
Posts: n/a

Default Re: What does this mean` - 12-08-2005 , 01:24 AM



Thanks for your replies. Much appreciated.

Kim

Kim wrote:
Quote:
When I run my page through cynthia and I don't get this checkpoint 12.4.
I get this warning:

Associate labels explicitly with their controls.

* Rule: 12.4.1 - Identify all non-hidden INPUT elements that do not
have an explicit LABEL association.
o Failure - INPUT Element, of Type TEXT, at Line: 55, Column:
13 in FORM Element at Line: 51, Column: 8
o Failure - INPUT Element, of Type TEXT, at Line: 59, Column:
13 in FORM Element at Line: 51, Column: 8
o Failure - INPUT Element, of Type TEXT, at Line: 62, Column:
13 in FORM Element at Line: 51, Column: 8
o Failure - INPUT Element, of Type TEXT, at Line: 66, Column:
13 in FORM Element at Line: 51, Column: 8
o Failure - INPUT Element, of Type TEXT, at Line: 75, Column:
13 in FORM Element at Line: 51, Column: 8
* Rule: 12.4.2 - Identify all TEXTAREA elements that do not have an
explicit LABEL association.
o Failure - TEXTAREA Element at Line: 70, Column: 13 in FORM
Element at Line: 51, Column: 8
* Rule: 12.4.3 - Identify all SELECT elements that do not have an
explicit LABEL association.
o No SELECT Elements found within FORM element found at Line:
51, Column: 8.
* Rule: 12.4.4 - Identify all OBJECT elements, within a FORM
element, that do not have an explicit LABEL association.
o No OBJECT Elements found within FORM element found at Line:
51, Column: 8.

What am I supposed to do?

http://mouseriders.dk/tilbud.php

--
kim
--------------------------
http://mouseriders.dk


Reply With Quote
  #5  
Old   
Gary White
 
Posts: n/a

Default Re: What does this mean` - 12-08-2005 , 10:46 AM



On Thu, 8 Dec 2005 01:03:32 +0000 (UTC), Joe Makowiec
<makowiec (AT) invalid (DOT) invalid> wrote:

Quote:
label for="something">Input something here</label><input
name="something"

In order for it to work properly, it needs to identify the input with an
ID instead of a name:

<label for="something">Input something here</label><input
id="something">

Gary


Reply With Quote
  #6  
Old   
Kim
 
Posts: n/a

Default Re: What does this mean` - 12-08-2005 , 11:47 AM



Hi Gary << See I spelled it right this time

Quote:
In order for it to work properly, it needs to identify the input with an
ID instead of a name:
Yes they did. Thanks a lot.

--
kim
--------------------------
http://mouseriders.dk


Reply With Quote
  #7  
Old   
Gary White
 
Posts: n/a

Default Re: What does this mean` - 12-08-2005 , 01:28 PM



On Thu, 08 Dec 2005 17:47:12 +0100, Kim <not (AT) this (DOT) com> wrote:

Quote:
Yes they did. Thanks a lot.

You're welcome, Kim.

Gary


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.