Forum Moderators: open

Message Too Old, No Replies

Validator says: SHORTTAG YES must be specified

         

d1n1_81

3:27 pm on Mar 13, 2005 (gmt 0)

10+ Year Member



Hi there,

In some of the content of one of my pages, when validating I get the following problem:

Line 73, column 53: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified

<input name="17th_April_" type="radio" checked value="Available" />

This is part of a form with some checkboxes and the issue seems to be with assigning some of the checkboxes to appear already 'checked'. Can you advise on how I can correct this problem?

Any speedy help will be greatly appreciated - I have been trying for quite a while to solve this but have been unable to.

Many thanks in advance,
D1n1_81

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

[edited by: tedster at 3:45 pm (utc) on Mar. 13, 2005]

encyclo

7:20 pm on Mar 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you using HTML 4.01? If so, you should remove the trailing slash, as that is only used in XHTML. The validator's error message, whilst technically correct, is pretty obtuse.

<input name="17th_April_" type="radio" checked value="Available">

Captaffy

10:25 pm on Mar 13, 2005 (gmt 0)

10+ Year Member



Instead of just checked, try checked="checked"

In fact, I'm pretty sure that's the problem.
The error is saying that you can't use the short version of that attribute with the currrent doctype.

encyclo

1:02 am on Mar 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the correction, Captaffy, I believe you're quite right. Just ignore what I said, d1n1_81! :)