Add direction and language to HTML tag