HTM-047
Updated:
EPUBCheck HTM-047 is an error message: “Viewport metadata "…" has a syntax error.” The viewport meta element of a fixed-layout document has a syntax error.
The official message
Viewport metadata "%1$s" has a syntax error
- Default severity
- Error. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.
- EPUBCheck version
- 5.4.0
%1$s, %2$s… are filled in with the file, value or element EPUBCheck found.
Typical causes
- Wrong separators or misspelled keys in the content attribute.
How to fix it
- Write it as
content="width=1200, height=1600": width and height, each with a value, separated by a comma.
Terms used here
Other HTM messages
HTM-046Fixed layout document has no "viewport" meta element.HTM-048SVG Fixed-Layout Documents must have a "viewBox" attribute (on the outermost "svg" element).HTM-045Encountered empty href.HTM_055The "…" element should not be used (discouraged construct)HTM_057Viewport "…" value must be a positive number or the keyword "device-…"
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.