| |||||||||||||||||||
<xhtmlConformance> SectionASP.NET Syntax ASP.NET Configuration Sections Configures XHTML 1.0-conforming control rendering. <xhtmlConformance mode = "Transitional | Legacy | Strict" /> Attributes and ElementsThe following sections describe attributes, child elements, and parent elements. Attributes
Child ElementsNone. Parent Elements
RemarksBy default, when you are working with browsers that support HTML 4.0 or later, ASP.NET pages and controls render markup that is compatible with the XHTML 1.0 Transitional standard. However, under some circumstances, you might not want ASP.NET to render XHTML markup. This is typically true when you have existing pages that rely on tags or attributes that would ordinarily be prohibited by XHTML.
Default ConfigurationThe following default xhtmlConformance element is not explicitly configured in the machine configuration file or in the root Web.config file, but is the default configuration returned by an application in the .NET Framework version 2.0. <xhtmlConformance mode = "Transitional" /> ExampleThe following code example switches the rendering mode to conform to the XHTML 1.0 strict standard. The key change that occurs is that the name attribute is no longer rendered on the form tag. <xhtmlConformance mode = "Strict" /> See AlsoASP.NET Configuration XhtmlConformanceSection Class XhtmlConformanceMode Enumeration |
| ||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme