Blog moved to www.jeffreypalermo.com
Especially as we move to ASP.NET 2.0, it's important to use an XHtml DocType or DTD. ASP.NET 2.0 server controls will render valid XHtml transitional markup, so that's the most compelling Doctype, and that's the one I prefer, but pick one of the following:
- XHtml 1.0 Transitional
- XHtml 1.0 Frameset (if you need to use <iframe />
- XHtml 1.0 Strict
The DocType needs to be the first line in the page; however, since XHtml is valid Xml, you can optionally add an Xml declaration at the top:
<?xml version="1.0"?>
And if you do this, the Xml declaration has to first, and then the DocType would come directly after.
About Jeffrey Palermo
Jeffrey Palermo is a software management consultant and the CTO of Headspring Systems in Austin, TX. Jeffrey specializes in Agile coaching and helps companies double the productivity of software teams. Jeffrey is an MCSD.Net , Microsoft MVP, Certified Scrummaster, Austin .Net User Group leader, AgileAustin board member, INETA speaker, INETA Membership Mentor, Christian, husband, father, motorcyclist, Eagle Scout, U.S. Army Veteran, and Texas A&M University graduate.