Problem Statement
What is the purpose of the DOCTYPE declaration in HTML?
Explanation
The DOCTYPE tells the browser which HTML version you are using. It must be the first line before the html tag. For HTML 5, it is simply DOCTYPE html. This ensures the browser displays your page correctly in standards mode.
Code Solution
SolutionRead Only
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>Content here</p>
</body>
</html>