Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24320
    jitendra
    Participant

    1.

    Quote:
    <h2/h3> question</h2/h3>
    <p>answer</p>

    2.

    Quote:
    <p class="bold">Question</p>
    <p>answer</p>

    3.

    Quote:
    <dl>
    <dt>Question</dt>
    <dd>Answer</dd>
    </dl>

    or anything else

    #54839
    ikthius
    Member

    or <li>

    seriously it is totally up to you, whatever you feel is best to fit the design/css code

    #54840
    jitendra
    Participant

    We can fit anything . the question is now what we can fit?

    I wanted to know which method is semantically correct. What expert use?

    #54841
    Rob MacKay
    Participant

    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

    #54847
    ikthius
    Member

    here is one of mine:

    a FAQ for my martial arts club
    http://www.woskf.co.uk/faq.php

    #54854

    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:

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Other’ is closed to new topics and replies.