Re: Bug in HTML validator

>  Line 32, Column 115: end tag for element "FONT" which is not open
> …ntById("result").innerHTML = "<font color=\"#ff0000\">Error</font>";  return; }

To bypass this particular error you’d need to escape the backslash in
`</font>`, as in

<font color=\"#ff0000\">Error<\/font>

However, this is generally poor code—poor HTML, poor CSS (which should
be used instead of “font” elements and “color” attributes), poor
JavaScript. I don’t have a good reference at hand to point you to, but
reconsider this and research more modern approaches to web



Jens Oliver Meiert

Received on Saturday, 13 June 2020 16:06:38 UTC