How to fix: & did not start a character reference. (& probably should have been escaped as &.)

Most Likely Cause and Fix

Your markup contains an ampersand character which does not immediately precede anything representing a known entity.

To display a literal ampersand, use

Poppet & Diva are happy fluffy cats

instead of

Poppet & Diva are happy fluffy cats

What This Means

The ampersand (&) has a special meaning in HTML. Using a & in your markup does not mean 'display an ampersand character, please'.

An ampersand is used to start an entity. Examples include & to display an ampersand (&) and © to display a copyright symbol (©), not commonly found on keyboards.

This error is telling you that your markup contains an ampersand character which does not immediately precede anything representing a known entity.

How To Fix It

To display a literal ampersand

Use

Poppet & Diva are happy fluffy cats

instead of

Poppet & Diva are happy fluffy cats

To display an entity

Make sure there are no spaces between the ampersand and the remainder of the entity.

Use

©

instead of

& copy;

Discuss, Comment and Improve

Did this help you? Can this page be improved? Let us know!

comments powered by Disqus