HTML dir attribute
Structured HTML
EXP:
40

HTML dir attribute

The dir attribute in HTML specifies the text direction for the content within an element, with possible values like ltr (left-to-right), rtl (right-to-left), and auto (determined automatically based on content).

Your task in this problem is to change the direction the elements inside .container to right-to-left.

INSTRUCTIONS

HTML Element Attribute Attribute Value
div with class "container" (div.container) dir rtl


Refer to the intial & final screenshots provided below. please expand the output editor to see the actual ui as per the screenshots.
UI reference


    - Initial

    React

    - Final

    React

Evaluation
  • After submission, your solution will be evaluated automatically based on the tasks defined above.
  • Upon successful completion of all the tasks/requirements, you will get a full score, and there will not be any partial scoring.
  • You can work on your failed test cases & resubmit your solution.
  • Your problem will get evaluated instantly.

Do’s & don’t
  • Use the given code structure in editor and do not make any changes.
  • Do not modify existing classes or tags.
  • Focus on correct HTML structure and class names.

Query & feedback
  • In case of any query/feedback on this project, please fill this form & we will soon get in touch with you to resolve.

Best of luck, developers!