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.
- 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.
Loading...
Related Quiz
- The ______ attribute in the label element is used to associate the label with a form control.
- Consider a scenario where a table contains vital comparative data about products. How would you ensure that this table is both responsive and accessible?
- To open a linked document in the parent frame, target="______" is used.
- How can an image map be made responsive to accommodate various screen sizes?
- Users are experiencing issues where they complete a form but receive an error stating that required fields are not filled out. How can you ensure that users are alerted to missed fields before submitting?