A quick pointer in the direction of valid HTML

Associate
Joined
28 Jun 2005
Posts
895
I have just started fiddling around with HTML and PHP this summer after not touching it seriously for a couple of years.
I never produced "valid" html by a long way when I used to do it.
If I use w3 to validate the code what doctype should I use for standard code? HTML 4.01 strict or maybe Transistional or should I aim to validate it to XHTML 1.0 (either strict or transistional)?

Does it particularly make a difference who I am aiming it at as to what I choose? Is there always one that 99% of the time I should use?

Thanks for any input
Ric.
 
Right I still don't understand particuarly why I would validate code for XHTML opposed to HTML. I've read those various links and a little puzzled about all this "serving XHTML as text/html" or not business.

If I am just writing run of the mill webpages I am not as such using any extra functionailty of XHTML right? So all that happens if I want to validate for XHTML (so far in a very short and brief page) is I have to close some extra tags.

Going back to the serving XHTML as text/html, here seems to frown upon authours using XHTML without really knowing why they are using it (ME!).
At the end of the day if my code validates do I need to worry about this?

Ric.
 
thats the thing, im just fiddling at the moment - half creating a new site. Should I make it XHTML compliant over HTML is what I really want to know :p
I want it to be valid to one standard but I have no idea which
 
Thanks for all the help guys, think I have sussed what I want to do now :)
I'm not sure how I missed this before but this was probably the most helpful and easy to read explanation :)

Ric.
 
Back
Top Bottom