For my html header, I use this format:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Visual Studio is giving me this error for the tags:
Validation (XHTML 1.0 Transitional): Element 'input' is an empty element and
cannot have a closing tag. Instead, it must end with />.
What is the best way to correct this?
Re: form </input> validation
am 14.09.2007 00:28:31 von Bob Milutinovic
"jp2code" wrote in message
news:uvlRbUi9HHA.3916@TK2MSFTNGP02.phx.gbl...
>
>I have several input fields on my form, and the form works; however, Visual
>Studio is showing errors, and I would like to get rid of them.
Add/Remove Programs -> Remove Visual Studio
>
> When the form is submitted, it is redirected back to itself, where it
> checks the values that were entered.
>
> If the default values are set, this is the visitor's first time to access
> the page.
>
> Example: The FirstName field would initially be displayed with "First
> Name;" but, this value would not be valid for submitting the form.
>
A far better approach would be to check the value of the "submit" button.
> If non-default values are available, they are validated before being
> collected (i.e. FirstName can not be blank).
>
> If a page is not valid, a note is displayed next to the failed fields and
> all fields are populated with their previous values.
>
> Example:
> <%Request.Form("FirstName")%>
> <%Response.Write(strFirstNameErr)%>
>
> For my html header, I use this format:
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
> Visual Studio is giving me this error for the tags:
>
> Validation (XHTML 1.0 Transitional): Element 'input' is an empty element
> and cannot have a closing tag. Instead, it must end with />.
>
> What is the best way to correct this?
"
/>
--
Bob Milutinovic
Cognicom - "Australia's Web Presence Specialists"
http://www.cognicom.net.au/
telephone (0417) 45-77-66
facsimile (02) 9824-2240
Re: form </input> validation
am 14.09.2007 05:47:24 von Adrienne Boswell
Gazing into my crystal ball I observed "jp2code"
writing in news:uvlRbUi9HHA.3916@TK2MSFTNGP02.phx.gbl:
> For my html header, I use this format:
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
> Visual Studio is giving me this error for the tags:
>
> Validation (XHTML 1.0 Transitional): Element 'input' is an empty
> element and cannot have a closing tag. Instead, it must end with />.
>
> What is the best way to correct this?
>
>
1. Use a strict DocType for new documents - Transitional is for older
documents that are in Transition.
2. Better to use HTML instead of XHTML - unless you have a compelling
reason (other than being trendy) - lurk over at alt.html for reasons
why.
3. If you must use XHTML, then understand:
A) All elements must be closed.
B) Elements and attributes must be in lower case
C) Elements which do not have a corresponding end tag use a slash at the
end of the tag, eg.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Re: form </input> validation
am 14.09.2007 16:15:54 von jp2code
Nice crystal ball, Adrienne!
As for specifying Transitional and XHTML, I'm just using something I found
on another's HTML page.
How would I code my HTML using DocType and HTML? Any suggestions? I take
them, you know! :)
"Adrienne Boswell" saw this a ball O'crystal:
> 1. Use a strict DocType for new documents - Transitional is for older
> documents that are in Transition.
> 2. Better to use HTML instead of XHTML - unless you have a compelling
> reason (other than being trendy) - lurk over at alt.html for reasons
> why.
> 3. If you must use XHTML, then understand:
> A) All elements must be closed.
> B) Elements and attributes must be in lower case
> C) Elements which do not have a corresponding end tag use a slash at the
> end of the tag, eg.
Re: form </input> validation
am 14.09.2007 18:11:44 von Adrienne Boswell
Gazing into my crystal ball I observed "jp2code"
writing in news:ekwlEnt9HHA.4476@TK2MSFTNGP06.phx.gbl:
> Nice crystal ball, Adrienne!
>
> As for specifying Transitional and XHTML, I'm just using something I
> found on another's HTML page.
>
> How would I code my HTML using DocType and HTML? Any suggestions? I
> take them, you know! :)
>
http://www.w3.org/QA/2002/04/valid-dtd-list.html
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share