For an Urdu web page, which attributes should be set on the html element?

  1. lang="pk" dir="up"
  2. charset="urdu"
  3. lang="en" dir="ltr"
  4. lang="ur" dir="rtl"
Answer

D) lang="ur" dir="rtl"

Urdu is written right-to-left, so lang="ur" and dir="rtl" are used.

Computer Science MCQ · More HTML5 for Mobiles MCQs · Practise