How can I mix text in Hebrew and Latin in an HTML document?

I have an html document containing Hebrew and Latin text. It is encoded using utf-8:

<!DOCTYPE HTML>
<html>
<head>
  <title>Title</title>
  <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
</head>

<style type='text/css'> 
     .h  { color: green}
</style>

<body>

   <div>
      here are some words הנה כמה מילות (100, 200)
   </div>

   <div>
      here are some words <span class='h'>הנה כמה מילות</span> (100, 200)
   </div>

   <div>
      here are some words <span class='h'>הנה כמה מילות</span> <span>(100, 200)</span>
   </div>

   <div>
      here are some words <span class='h'>הנה כמה מילות</span> <b>WORD</b> <span>(100, 200)</span>
   </div>

</body>
</html>

The first three lines are not displayed, it seems to me. Fourth (with an optional <b>WORD</b>before brackets).

Here's how this document displays in Firefox:

Firefox 'rendeering

Change . Even copying / pasting my html text does not work correctly, so here is a screenshot of the original html (sorry, but it seems that it is impossible to get this text correctly)

enter image description here

+4
source share
2 answers

, , - . .

, , . ( utral) . , . LEFT-TO-RIGHT MARK, HTML &lrm;,

here are some words <span class='h'>הנה כמה מילות</span> &lrm;(100, 200)
+8

HTML :

<html><meta charset="UTF-8">......

<body dir="rtl">...
0

Source: https://habr.com/ru/post/1535252/


All Articles