PDA

View Full Version : FAQ page help



jdowd
09-19-2006, 03:48 PM
1) Script Title:

2) Script URL (on DD):

3) Describe problem: I am putting up an FAQ page and will have the questions posted at the top of the page. Where do I find the script when the question is clicked on you are taken to the answer further down the same page?

NXArmada
09-19-2006, 03:52 PM
No script.


<a href="#answer1">question 1</a>

and place this code just above the answer


<a name="answer1"></a>

you can have unlimited just as long as the text in blue match

mwinter
09-19-2006, 06:39 PM
... place this code just above the answer


<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:



<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.