This may sound like a dumb question from someone who has been doing javascript for years, and been on this forum for years, but I've never really had the need to worry about it, and it didn't used to come up. I've just gotten curious because such a big deal had been made of late (I'm not saying for good or bad, I really don't know) about using a particular doctype. The editor I use automatically supplies one, and I've never questioned what good it is. I have a vague idea what it is for, but it's never really come up. So, the following questions for the doctype supporters:
1. Just what good does specifying a particular doctype do?
2. What are the pros and cons of specifying one particular doctype over another?
3. What happens if you specify a particular doctype and then use something that happens to violate that doctype's rules?
I'm sure the answers to this question will be a big help to the newcomers to this site too.
cLFlaVA, Vragabond, BillyRayPreacherSon, Foamcow, others: take this opportunity to make your case emphatically.
Tracy Dryden
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.![[dragon] [dragon] [dragon]](/data/assets/smilies/dragon.gif)
1. Just what good does specifying a particular doctype do?
2. What are the pros and cons of specifying one particular doctype over another?
3. What happens if you specify a particular doctype and then use something that happens to violate that doctype's rules?
I'm sure the answers to this question will be a big help to the newcomers to this site too.
cLFlaVA, Vragabond, BillyRayPreacherSon, Foamcow, others: take this opportunity to make your case emphatically.
Tracy Dryden
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
![[dragon] [dragon] [dragon]](/data/assets/smilies/dragon.gif)