Which Document Type Shoud I Choose And Use ?
I want to choose a document type for my html pages . which of the document types shoud I chosse and insert in my html sources ?
I choose on of them buy wc validator says its incorrect !
my website is http://www.allpopularsites.com
and I check http://www.w3.org but I want to sure that the html type that Im using now is the correct one !
I choose on of them buy wc validator says its incorrect !
my website is http://www.allpopularsites.com
and I check http://www.w3.org but I want to sure that the html type that Im using now is the correct one !
XHTML 1.0 strict or transitional. XHTML is the way things are going. It is very similar to the HTML you are used to but has some stricter rules that allows it to be processed better on various devices like cellphones, pdas, etc. I checked out your site and the code looks like it is close to being valid XHTML. The one big difference is it is required that all tags are closed like the are in XML. An example would be your image tags. You can't use something like
<img src="myimage.jpg">
but instead need to close it like
<img src="myimage.jpg" />
Here is the syntax for this
http://www.w3.org/QA/2002/04/valid-dtd-list.html
here are some sites to validate your code
http://www.sidar.org/hera/
http://validator.w3.org/
<img src="myimage.jpg">
but instead need to close it like
<img src="myimage.jpg" />
Here is the syntax for this
http://www.w3.org/QA/2002/04/valid-dtd-list.html
here are some sites to validate your code
http://www.sidar.org/hera/
http://validator.w3.org/
XHTML 1.0 strict or transitional should be fine
XHTML 1.0 strict or transitional. XHTML is the way things are going. It is very similar to the HTML you are used to but has some stricter rules that allows it to be processed better on various devices like cellphones, pdas,
etc. I checked out your site and the code looks like it is close to being valid XHTML. The one big difference is it is required that all tags are closed like the are in XML. An example would be your image tags. You can't use
something like
<img src="myimage.jpg">
but instead need to close it like
<img src="myimage.jpg" />
Here is the syntax for this
http://www.w3.org/QA/2002/04/valid-dtd-list.html
here are some sites to validate your code
http://www.sidar.org/hera/
http://validator.w3.org/
<img src="myimage.jpg">
but instead need to close it like
<img src="myimage.jpg" />
Here is the syntax for this
http://www.w3.org/QA/2002/04/valid-dtd-list.html
here are some sites to validate your code
http://www.sidar.org/hera/
http://validator.w3.org/