|
Is this correct?
'Use different doctype for mobile browsers If blnMobileBrowser Then Response.Write("<!DOCTYPE html PUBLIC ""-//WAPFORUM//DTD XHTML Mobile 1.2//EN"" "" http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd" rel="nofollow - http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd "">" & _ vbCrLf & "<html xmlns="" http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml "" dir=""" & strTextDirection & """ xml:lang=""en"">")
'Else standrad XHTML doctype Else %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml " dir="<% = strTextDirection %>" lang="en"> <head><%
End If
%>
Or this is correct?
'Use different doctype for mobile browsers If blnMobileBrowser Then Response.Write("<!DOCTYPE html PUBLIC ""-//WAPFORUM//DTD XHTML Mobile 1.2//EN"" "" http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd" rel="nofollow - http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd "">" & _ vbCrLf & "<html xmlns="" http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml "" dir=""" & strTextDirection & """ xml:lang=""en"">")
'Else standrad XHTML doctype Else %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml " dir="<% = strTextDirection %>" lang="en"> <%
End If
%><head>
The first is what browser_page_encoding_inc.asp.
|