4. What is the purpose of <!DOCTYPE html>?
It tells the browser to use standards mode for the document. The modern HTML doctype is intentionally simple: <!doctype html>.
Key Takeaways
- DOCTYPE is a declaration.
- Use the modern HTML doctype in HTML documents.
Knowledge Check
What does <!doctype html> primarily do?