treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Which is the best logical and semantic solution to code Q&A

  • 1.
    <h2/h3> question</h2/h3>
    <p>answer</p>


    2.
    <p class="bold">Question</p>
    <p>answer</p>


    3.
    <dl>
    <dt>Question</dt>
    <dd>Answer</dd>
    </dl>


    or anything else
  • or <li>

    seriously it is totally up to you, whatever you feel is best to fit the design/css code
  • We can fit anything . the question is now what we can fit?

    I wanted to know which method is semantically correct. What expert use?
  • Like Ikthius said - it depends on how your QA is layed out... there is no law written in stone for Q&A lists - its just what fits your design better.

    If it was actually a list the I would probably go for the DL option but I can see each of them working fine and depending on the situation all might do the job better than the other
  • here is one of mine:

    a FAQ for my martial arts club
    http://www.woskf.co.uk/faq.php
  • Semantically it is a list of FAQs so you should use a list structure. Whether it is an unordered, ordered or definition list is up to you.

    I do like your use of <dl> though :mrgreen: