What is the most practical dtd, works well and is forgiving?
I was a bit surprised while looking for answers about this to find this thread.
XHTML 1.0 Strict, Transitional .. or XHTML 1.1?
1 or 2 posters there said that xhtml is dead, and the argument went back and forth a bit. Is it actually better to just use an html declaration?
Just to be clear, this is my first choice, not because I know anything about it, but I just read a lot of times that a strict xhtml declaration was best.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">;
<html xmlns="http://www.w3.org/1999/xhtml">
When that mucks up, this one will validate on the same page. (at least so far)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Do you think that one of the posters to the thread above might have a point and it would be better to go with
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Or something like that? But when I do put that one in, the <head> that works with the first 2 doesn't validate with this one.
And a couple more questions about validating while I'm at it. I read lately that google doesn't use /html and /body tags because browsers just don't bother with them and it saves on bandwidth(!) I ran one of their pages through the validator and it had way over a hundred errors.
Have also seen a lot of comments that a lot of webmasters don't bother with validating at all. Any related experience with that?
And another question that I'm still thinking about from a different thread.
I thought that would be fine as long as the page didn't have a foreign character. I'll try to paste in one of my tiny jokes that has a french accent over the final e, "toast flambé." I tried to validate a page that was saved as ANSI and had that on the page, and to my surprise it did validate, even though "charset=utf-8" was declared in the head.
The w3.org validator page makes it sound a bit important to use utf-8, but is this also just a complete non issue? It doesn't matter a bit?
thanks in advance, lloyd
Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat
The KimW WSO
Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat
The KimW WSO