Direction "rtl" for a specific language

Hello all, 

I am trying to add the Arabic language to a website (Arabic is written from right to left), so I need a way to add (dir=„rtl“) to the tag.

any idea?!

thanx in advance.