What is the purpose of the DOCTYPE declaration in HTML documents?
- It acts as a comment for the developers.
- It defines the version of the CSS used.
- It determines the browser's rendering mode.
- It includes external scripts.
The DOCTYPE declaration informs the browser about the type and version of the HTML used in the document. This ensures that the browser knows the set of rules to follow when parsing and rendering the page, which helps in consistent and correct page rendering.
Loading...
Related Quiz
- How is the tag typically utilized for user experience in search results?
- Which input type defines a checkbox?
- How is the blockquote element commonly displayed in browsers by default?
- What is the primary strategy used to make a table responsive?
- How does the meta charset attribute affect the HTML document?