...

View Full Version : validating code



j05hr
10-27-2009, 09:11 PM
I have one error not validating in xhtml transitional, I can't fix it what ever I do. Please could a more experienced member explain what's wrong?

Line 60, Column 34: required attribute "rows" not specified
Enquiry: <textarea name="enquiry"></textarea>

The code:


Enquiry: <textarea name="enquiry"></textarea>

tspek
10-27-2009, 09:29 PM
I have one error not validating in xhtml transitional, I can't fix it what ever I do. Please could a more experienced member explain what's wrong?

Line 60, Column 34: required attribute "rows" not specified
Enquiry: <textarea name="enquiry"></textarea>

The code:


Enquiry: <textarea name="enquiry"></textarea>

You need to specify how large the text area is.

You do this via rows and columns, i'm certain you can do it in the "standard" ways. pixels, percentages, em

Example:

<textarea name="enquiry" rows="5" cols="35"></textarea>

djm0219
10-27-2009, 09:31 PM
The textarea tag requires a rows parameter and it's usually good to also use the cols parameter tool


Enquiry: <textarea name="enquiry" rows="2" cols="20"></textarea>

SB65
10-27-2009, 09:35 PM
The number of rows (and columns, actually) are required attributes of textarea. For example:


<textarea name="enquiry" rows="5" cols="30"></textarea>

for 5 rows and 30 columns.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum