Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Good grief! Most of this looks friendly enough, but whats that scary “DOCTYPE” line all about?

0
Posted

Good grief! Most of this looks friendly enough, but whats that scary “DOCTYPE” line all about?

0

The DOCTYPE tells the web browser what version of XHTML we’re using. In this case I’ve specified XHTML 1.0 Strict, because this code is 100% compliant with the rules of XHTML. You don’t need to understand this line in detail – just know that you should include it if you plan to write standards-compliant web pages. And you should. Those who must use HTML elements that aren’t included in strict XHTML can use the “transitional DTD” (Data Type Declaration) instead:

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.