Cermify · Error Library · KDP

Package Structure · E-RSC005

Invalid HTML/CSS construct (RSC-005 family)

Your EPUB contains HTML or CSS that KDP's validator flags as invalid (commonly reported as RSC-005). This usually comes from exporters like Canva or Google Docs leaving behind unsupported attributes or unclosed tags.

Severity
error
Automatic repair
Supported
Submission impact
KDP: reject
Rule ID
E-RSC005
Error: Invalid HTML/CSS construct (RSC-005 family)
Category: Package Structure
Severity: error
Auto Repair: Supported
Rule ID: E-RSC005
Affected: KDP=reject, Apple=reject, Google=reject, Kobo=reject
Check this automatically with Cermify

Why this happens

How platforms treat it

PlatformResult
KDPreject
Apple Booksreject
Google Playreject
Koboreject

How Cermify detects it

  1. Unpack the EPUB and run epubcheck (or KDP Previewer) against content documents.
  2. Collect RSC-005 / well-formedness messages with file path and line.
  3. Inspect the cited element or CSS rule for unsupported attributes, bad nesting, or invalid syntax.
  4. Confirm the content document is XML-well-formed XHTML when required by the EPUB version.

Automatic repair

Cermify can strip or rewrite many known RSC-005 offenders (unsupported attributes, common unclosed tags, selected CSS cleanups) and recheck. Rare or novel constructs may still need a manual pass.

Manual fix

  1. Open the file named in the validator message (usually a .xhtml / .html chapter or stylesheet).
  2. Fix well-formedness first: close tags, escape & as &, ensure a single root element.
  3. Remove or replace attributes and CSS that epubcheck rejects; prefer EPUB-safe CSS.
  4. Repackage the EPUB and re-run epubcheck / KDP upload until RSC-005 is gone.

Examples

Unsupported align / MSO attributes and an unescaped ampersand commonly trigger RSC-005.

Incorrect

<p align="center" style="mso-spacerun: yes">Hello & welcome</p>

Correct

<p class="center">Hello &amp; welcome</p>

FAQ

Is every RSC-005 message the same problem?

No. RSC-005 is a family of epubcheck reports about invalid markup or CSS. The fix depends on the cited line—attribute, nesting, encoding, or stylesheet syntax.

Will Kindle still open the book if I ignore it?

KDP typically rejects the upload when RSC-005 (or equivalent) remains. Do not rely on device preview alone; clear the validator errors first.

Why do Canva or Docs exports fail more often?

Those tools optimize for web or print layout, not EPUB XHTML. They often emit proprietary attributes and incomplete markup that epubcheck flags.

Related errors

References