<!-- 왼쪽에서 배치되어 오른쪽으로 읽고 쓰기 -->
<p dir="ltr">이것은 왼쪽에서 오른쪽으로 쓰는 텍스트입니다.</p>
<p dir="ltr" lang="en">This is a left-to-right text.</p>

<!-- 오른쪽에서 배치되어 왼쪽으로 읽고 쓰기 -->
<p lang="ar" dir="rtl">هذا نص من اليمين إلى اليسا</p> <!-- 아랍어 -->
<p lang="he" dir="rtl">זהו טקסט שנכתב מימין לשמאל.</p> <!-- 히브리어 -->
실제 적용된 모습
<!DOCTYPE html>
<html dir="rtl" lang="ar">
    <head>
        <meta charset="utf-8">
... 
text-align: start | end
justify-content: flex-start | flex-end ...
align-content: flex-start | flex-end ...
grid-column-start: <value>
grid-column-end: <value>
inline-size: <width>
margin-inline-start: <value>
margin-inline-end: <value>
padding-inline-start: <value>
padding-inline-end: <value>
border-inline-start-width: <value>
border-inline-end-width: <value>
border-inline-start-style: <value>
border-inline-end-style: <value>
border-inline-start-color: <value>
border-inline-start-color: <value>
...
<table dir="ltr">
    <tr>
        <td>1</td>
        <td>2</td>
        <td>3</td>
        <td>4</td>
        <td>5</td>
    </tr>
</table>
<table dir="rtl">
    <tr>
        <td>1</td>
        <td>2</td>
        <td>3</td>
        <td>4</td>
        <td>5</td>
    </tr>
</table>
실제 적용된 모습