View Single Post
Old 08-04-2020, 07:28 PM   #4
etihwmot
Junior Member
etihwmot began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2020
Device: android
Quote:
Originally Posted by jhowell View Post
I don't see anything obviously wrong with that code. What is the validation error?
CSS styles/attributes shouldn't be in the <html> tag. And there's none in my .html file before sticking it through Calibre. Here's the error:

Error while parsing file: attribute "class" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang"

The error makes sense to me, but Calibre adding a styling attribute where there were none, does not.
etihwmot is offline   Reply With Quote