dir
attribute.
dir
attribute may be required to identify changes in text direction.
Question | Are all changes in text direction marked using the dir attribute? |
---|---|
PASS | All changes in text direction are marked using the dir attribute. |
FAIL | All changes in text direction are not marked using the dir attribute. |
dir
attribute.dir
attribute.dir
attribute to inline elements that mark blocks of text that have a reading order different from the document's primary language.dir
attribute.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>ATRC Testfile - Check #271.2 - Negative</title> </head> <body> <p>The title says "<span lang="he" dir="rtl">פעילות ×â€Ã—‘×™× ×Âו×Â, W3C</span>" in Hebrew.</p> </body> </html>
dir
attribute.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>ATRC Testfile - Check #271.1 - Positive</title> </head> <body> <p>The title says "<span lang="he">פעילות ×â€Ã—‘×™× ×Âו×Â, W3C</span>" in Hebrew.</p> </body> </html>