Originally Posted by pdurrant
move the <a....></a> outside the <p>....</p> or other block level tags.
You mean inside
Just like <blockquote>, the main <body> cannot contain in-line, such as <a>, <span> or <i>. You have to put your <a> inside a <p> or a <div>.
But you don't need an empty anchor at all. If all you want is to put an anchor somewhere, you can add the id
attribute to any existing element:
<p id="foreword">This is where the Foreword starts.</p>
<p>This <a href="#foreword">link</a> points to the previous paragraph.</p>