Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Serving XHTML With Classic ASP

DZone's Guide to

Serving XHTML With Classic ASP

·
Free Resource
How to correctly serve XHTML with Classic ASP:


If InStr(Request.ServerVariables("HTTP_ACCEPT"), "application/xhtml+xml") > 0 Then
     Response.ContentType = "application/xhtml+xml"
Else
     Response.ContentType = "text/html"
End If
Response.Charset = "utf-8"


Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}