tags:

views:

22

answers:

2

I'm using latex commands in my html code. When I validate the at w3c validator, it is giving me inavlid markup message.

Line 105, Column 31: non SGML character number 12

    \begin{equation}(x^{2})^{4+(frac{1}{5})}\end{equation}

Is there a way to pass validation? Can I ignore this error?

+2  A: 

Put your LaTex code into a CDATA block:

<![CDATA[
\begin{equation}(x^{2})^{4+(frac{1}{5})}\end{equation}
]]>
Tony Miller
+1  A: 

non SGML character number 12 means that you have a control character in your html source. This is likely to be a mistake. Try to spot this character and delete it. Alternatively, retype the line that is causing you the problem.

Olivier
Yes, this was the problem. The actual code was, \begin{equation}(x^{2})^{4+(\frac{1}{5})}\end{equation} and when it was validated, it became \begin{equation}(x^{2})^{4+(rac{1}{5})}\end{equation}, so i added double backslash before f. and it validated my code. Thanks.
robert