Re: Bug in HTML validator
Jens Oliver Meiert <[email protected]> Sat, 13 Jun 2020 18:06:12 +0200
| Newsgroups | gmane.org.w3c.validator |
|---|---|
| Message-ID | <CAJ0g8QSyuP82W=x44izrQekQrYCKbo47eFTj7Kd_JwUtjvNmGg@mail.gmail.com> |
> Line 32, Column 115: end tag for element "FONT" which is not open
>
> =E2=80=A6ntById("result").innerHTML =3D "<font color=3D\"#ff0000\">Error<=
/font>"; return; }
To bypass this particular error you=E2=80=99d need to escape the backslash =
in
`</font>`, as in
<font color=3D\"#ff0000\">Error<\/font>
However, this is generally poor code=E2=80=94poor HTML, poor CSS (which sho=
uld
be used instead of =E2=80=9Cfont=E2=80=9D elements and =E2=80=9Ccolor=E2=80=
=9D attributes), poor
JavaScript. I don=E2=80=99t have a good reference at hand to point you to, =
but
reconsider this and research more modern approaches to web
development.
Best,
Jens.
--=20
Jens Oliver Meiert
https://meiert.com/en/