<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>dir() selector reference</title> | |
<link rel="author" title="Astley Chen" href="mailto:aschen@mozilla.com"> | |
<link rel="author" title="Mozilla" href="https://www.mozilla.org"> | |
<style> | |
div { text-align: left; } | |
.ltr { color: blue; direction: ltr } | |
.rtl { color: lime; direction: rtl } | |
</style> | |
</head> | |
<body> | |
<div class="rtl">This element is rtl.</div> | |
<div class="ltr">This element has default direction.</div> | |
</body> | |
</html> |