Forum Moderators: open
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
What does a browser do with this "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" address? Does it download the Doctype information (the dtd file), increasing the load time (by 30kb)? Or are these doctypes installed in the browser? If so, what about older browsers?
text/html (which is virtually everything). The doctype needs to be present for two reasons: firstly to allow the page to validate [validator.w3.org], and secondly to enable standards compliance mode [webmasterworld.com] which will make you page behave to standards in modern browsers. It does not slow the page down at all, except for the few extra bytes it uses.
Of course, that little extra parsing is completely negligible, and absolutely undetectable on the client side even if they are running on an ancient 386 PC.