Web Development

General discussion


Using XHTML on an ASP page?

By irutgers ·
XHTML Transitional , ASP (not .net) pages

Couple of quick questions:

1. I assume that one can use xhtml in an .asp page?
2. The particular page I am trying to convert has the following code that the w3c html validator doesn't like and would appreciate your suggestions:

<%@ Language=JavaScript %> and similarly ...

The <% and %> are causing the w3c validator to spew out multiple errors such as "document instance must start with document element" and "character "<" is the first character of a delimiter but occurred as data"

Thanks in advance for your help!

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

May be this

by Yatin U In reply to Using XHTML on an ASP pag ...

Am not sure about XHTML and ASP compatibility with w3c validator but.....
try putting the language="javascript" in double quotes.
i.e javascript in double quotes

Collapse -

Try this

by mparter In reply to May be this

Are you uploading your ASP file to the validator?

Try entering a URL instead, as the validator will then valid the outputted HTML (or XHTML)rather than the raw ASP page. If you can't directly enter a URL then try running the page locally, viewingthe source, copy it and paste it into a blank html file. Then upload this.

Hope this helps.

Collapse -


by bmacdonald In reply to Using XHTML on an ASP pag ...

Don't send the asp file for validation. Send the resulting html page instead. After all, the server processes the asp on its side. It sends the html output to the client. It is that final output that needs to be valid.

Related Discussions

Related Forums