Search code examples
htmlunicodeutf-8right-to-left

HTML5 page language, direction and encoding


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?


Solution

  • <html dir="rtl" lang="he">
      <head>
        <meta charset="utf-8">
         ...
        </head>
      ...
    </html>