HTML5 page language, direction and encoding

Baruch picture Baruch · Oct 11, 2012 · Viewed 12.9k times · Source

What is the correct way of declaring a HTML5 page to be in Hebrew, RTL and utf-8 encoded? I haven't done it in a while, but I remember that in HTML4 it involved 3 or 4 tags and attributes that seemed redundant. Is it still the same?

Answer

ChuckE picture ChuckE · Oct 11, 2012
<html dir="rtl" lang="he">
  <head>
    <meta charset="utf-8">
     ...
    </head>
  ...
</html>