Does anyone use the DL, DT and DD tags? I have a list with each item having a title and description and was wondering if this would be the best thing to use for it or would the simple ul and li tags be better?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, a definition list (
<dl>) is specifically for lists where each item has a title and description. You can then style the ‘definition term’ (AKA title<dt>) and description (<dd>) separately. Your markup will make more sense semantically, and also be more easily machine-readable. Definition lists have been part of HTML for as long as I can recall. Here’s a plain example, and a fancier one with images, both using<dl>.