View Single Post
Old 03-22-2011, 04:16 PM   #15
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by pdurrant View Post
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:

Code:
<p id="foreword">This is where the Foreword starts.</p>

<p>This <a href="#foreword">link</a> points to the previous paragraph.</p>
Jellby is offline   Reply With Quote