A

Admin • 802.91K Points
Coach

Q. State whether the given statement is true or false. !DOCTYPE is case sensitive”

  • (A) True
  • (B) False
  • (C) ---
  • (D) ---
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category HTML
  • Hashtags:

Explanation by: Admin

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.