Search code examples
htmlmathjax

a<b is not identified by html


Here is my code in the html file:

<li>For any $0 \leq s < t$, the random variable $B_t - B_s$ is normally distributed with mean 0 and variance $t-s$, i.e., for any $a<b$, </li>

It's supposed to appear a<b in the end.

However, when I opened the html in the Chrome, I found that the part after a is missing. It might be that the Chrome identify <b as a node in the website. Any thoughts to fix that?


Solution

  • < in HTML represents a tag. If you want to make sure that less than or greater than symbols appear you should use entities.

    Example:

    Use &lt; instead of <

    Use &gt; instead of >