A

Admin • 802.91K Points
Coach

Q. Choose the correct XHTML for width attribute and its value.

  • (A) width=80
  • (B) width=”80″
  • (C) WIDTH=”80″
  • (D) WIDTH=80
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category HTML
  • Hashtags:

Explanation by: Admin

In XHTML, all attributes must:

  1. Be in lowercase → XHTML is case-sensitive, so width (not WIDTH) is correct.
  2. Have values enclosed in quotes → Attribute values must be enclosed in double (" ") or single () quotes.

Why other options are incorrect?

  • (A) width=80Incorrect because the value must be enclosed in quotes.
  • (C) WIDTH="80"Incorrect because XHTML is case-sensitive, and WIDTH should be width.
  • (D) WIDTH=80Incorrect because both uppercase and missing quotes violate XHTML rules.

Thus, the correct answer is (B) width="80" ✅.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.