r/webdev - Help understanding the outlined text in the image attached. (DOCTYPE Question)


So I’m a bit confused on the, “Where this is used, it should be the first thing in a document. There must be nothing before it, not even a space.”

Aren’t DOCTYPES always the first thing in a document? And in the examples, from my understanding, I don’t see any spaces in any of them. Also, is the text that’s outlined explaining the example at the bottom, “XML Declaration”? One more, what’s the reason for the “?” symbol within the bottom example?

Also any DOCTYPE knowledge you got for a complete beginner would be greatly appreciated.

Source link

Write A Comment