Forum Moderators: open
I want my pages to validate xhtml 1 Transitional, and they do until I add in my user login identification control:
<uc1:identification id="id1" runat="server" />
MS says to include <form runat="server"></form> around asp controls, but w3c validation gives me more errors and my page breaks altogether. I have also included in an SSI file earlier in the page the line:
<%@ Register TagPrefix="uc1" TagName="identification" Src="/usercontrols/identification.ascx" %>
Any ideas?
Just posting the code that you use to reference it is no good!
You should be using the lowest version of HTML that supports the fucntionality you require. For most people, this is HTML 4.01, very rarely is XHTML1.1 Transitional the right choice. It's not a case of XHTML is "the latest and greatest vesrion". By using it, you will be alienating a lot of web browsers and search engines.
What features of XHTML do you need to use?
Do most people just remove their links and validate their pages without them? Then validate the code seperately?
As for writing it in xhtml compliant markup vs. html4 I just see it as being a logical step in creating a forward compatible site. I think my site actually validates in both html4 and as xhtml.
If you try to validate the source page with even rendering it, it would never validate against anything.
User controls aren't "links" they render as the HTML that is included in them.