XHTML Strict - Is this right?

  • Thread starter Thread starter Bobby Edward
  • Start date Start date
B

Bobby Edward

To use XHTML Strict all I have to do is...

1. Add this to the top of my master page/ASPX page(s)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
2. Add this to my web.config "<system.web>" section
<xhtmlConformance mode="Strict" />

Correct????
 
no, all the html and css you enter must follow the xhtml standard. you
should run your pages thru a xhtml compliance tool (visual studio has a
simple one, but it only checks the aspx source, not the rendered html).
also 3rd party controls may not generate compliant html.


-- bruce (sqlwork.com)
 
Bobby Edward said:
To use XHTML Strict all I have to do is...

1. Add this to the top of my master page/ASPX page(s)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
2. Add this to my web.config "<system.web>" section
<xhtmlConformance mode="Strict" />

Correct????

There's a difference between HTML and XHTML.
For one, XHTML is a type of XML document and has a DTD, but it is based on
HTML 4.0
Check with the W3C http://www.w3.org/MarkUp/#recommendations
and here's a decent set of tutorials on both
http://w3schools.com/
 
Back
Top