Maybe I'm just overlooking something here, but I can't seem to find an answer to a very fundamental questions about DOCTYPE usage.
Here's the thing: The 2nd part of a DOCTYPE declaration references a live URL for a given DTD (for example, "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"). So what happens if you're working offline? Or if the w3.org site is unavailable for some reason?
Am I correct in understanding that every single site in the world with a DOCTYPE declaration like this is physically connecting with the w3.org site before the page continues loading? Is that how this works?
Someone visits my site, my XHTML file is transferred to their browser, which then opens it and begins to interpret it, and the first thing it finds in this statement. So does it then try to connect to this absurd URL and fetch this xhtml1-strict.dtd file? What if it can't?
It's this like inserting page counter code into your page, which references another site to compute your statistics? Surely I must be wrong about this -- who on Earth would rely on another website's presence to make sure their own website works right?
Here's the thing: The 2nd part of a DOCTYPE declaration references a live URL for a given DTD (for example, "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"). So what happens if you're working offline? Or if the w3.org site is unavailable for some reason?
Am I correct in understanding that every single site in the world with a DOCTYPE declaration like this is physically connecting with the w3.org site before the page continues loading? Is that how this works?
Someone visits my site, my XHTML file is transferred to their browser, which then opens it and begins to interpret it, and the first thing it finds in this statement. So does it then try to connect to this absurd URL and fetch this xhtml1-strict.dtd file? What if it can't?
It's this like inserting page counter code into your page, which references another site to compute your statistics? Surely I must be wrong about this -- who on Earth would rely on another website's presence to make sure their own website works right?
