You're developing a FAQ section on a webpage. How would you semantically structure the questions and answers using HTML list elements?

  • Using
    with

    for questions and

    for answers. 
  • Using
      for both questions and answers. 
    1. Using
        for questions and

        for answers. 

      • Using only
        tags for both. 
      The

      tag defines a description list. Within this, the

      tag is used to specify the term (in this case, the question) and

      provides the description or definition (the answer). This ensures a semantic and structured representation of FAQs. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *