xhtmlConformance Element (ASP.NET Settings Schema)
Configures XHTML 1.0–conforming control rendering.
<xhtmlConformance mode="Transitional|Legacy|Strict"/>
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| mode | An optional String attribute, which specifies the XHTML rendering mode for an ASP.NET application. The mode can be one of the values listed in the following table. The default is Transitional (XHTML 1.0 Transitional).
|
Child Elements
None.
Parent Elements
| Element | Description |
|---|---|
| configuration | The required root element in every configuration file that is used by the common language runtime and .NET Framework–based applications. |
| system.web | Specifies the root element for the ASP.NET configuration settings in a configuration file. Contains configuration elements that configure ASP.NET Web applications and control how the applications behave. |
By 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.
Note |
|---|
| Only rendering changes that are likely to break existing applications are reverted to their old behavior. There is no mechanism to revert all changes made to comply with the XHTML specification. |
Tasks
How to: Configure Specific Directories Using Location SettingsHow to: Lock ASP.NET Configuration Settings
Reference
system.web Element (ASP.NET Settings Schema)configuration Element (General Settings Schema)
System.Configuration
System.Web.Configuration
Concepts
ASP.NET Configuration File Hierarchy and InheritanceSecuring ASP.NET Configuration
ASP.NET Configuration Scenarios
Other Resources
General Configuration Settings (ASP.NET)ASP.NET Configuration Settings
Configuring ASP.NET Applications
ASP.NET Configuration Files
ASP.NET Configuration API
Note