   <pre id="html-dir-code" class="code-highlight border"><code class="language-html">&lt;html dir=&quot;rtl&quot; lang=&quot;ar&quot;&gt;</code></pre>
                  </div>
                </li>
                <li>
                  <span class="text-body-emphasis fw-semibold">Include language attribute:</span> Add an appropriate language attribute, like <code>lang="ar"</code>, to the <code>&lt;html&gt;</code> element. This helps with SEO and screen reader accessibility.
                </li>
          