📊 HTML
Q. State whether the given statement is true or false. !DOCTYPE is case sensitive”
  • (A) True
  • (B) False
  • (C) ---
  • (D) ---
💬 Discuss
✅ Correct Answer: (B) False

Explanation:

The !DOCTYPE declaration in HTML is not case-sensitive. It can be written in any combination of uppercase and lowercase letters, and it will still work correctly. However, the convention is to write it in uppercase for readability and consistency.

Example (Both are valid):

<!DOCTYPE html>
<!doctype html>

In HTML5, !DOCTYPE is primarily used to specify that the document follows HTML5 rules and does not trigger quirks mode in browsers.

Explanation by: Official MCQ Buddy

The !DOCTYPE declaration in HTML is not case-sensitive. It can be written in any combination of uppercase and lowercase letters, and it will still work correctly. However, the convention is to write it in uppercase for readability and consistency.

Example (Both are valid):

<!DOCTYPE html>
<!doctype html>

In HTML5, !DOCTYPE is primarily used to specify that the document follows HTML5 rules and does not trigger quirks mode in browsers.

💬 Discussion


📊 Question Analytics

👁️
339
Total Visits
📽️
4 y ago
Published
🎖️
Harikesh
Publisher
📈
86%
Success Rate