
Originally Posted by
NXArmada
... place this code just above the answer
Code:
<a name="answer1"></a>
The more flexible approach would be to use an id attribute to mark an element as a destination anchor. In an FAQ, the heading for the entry would be the most appropriate:
HTML Code:
<h3 id="set-cookies">2.3 How do I set cookies?</h3>
<p>Blah...</p>
Mike
In the example above, a level-3 heading would be structurally appropriate: the document title would be the level-1 heading, the section heading (say, "2 State management") would be the level-2 heading, and each answer within that section would begin with a level-3 heading. Don't use heading levels only for presentation.
Bookmarks