HTML文書のタイトルが左横書きで表示されるか右横書きで表示されるかはUnicodeのBIDIアルゴリズムによって決定される(title
要素のdirection
プロパティの値などには依存しない)。そのため、ついうっかりタイトルの1文字目をアラビア文字にするとタイトルは右横書きで表示されてしまう。たとえばtitle
要素を
<title>كَتَبَ | Fooctionary</title>
と書くと次のように表示される(Microsoft Edgeの場合)。
タイトルの文字の進行方向を正しく表示するためにはUnicodeの方向制御コードを使う。たいていの場合はタイトルの頭にleft-to-right markを付け加えるだけでよい。
<title>‎كَتَبَ | Fooctionary</title>