Is it ok to use DT and DD outside of a DL block?

I ask because, I would like to use this items in a similar format of the PHP manual to describe the function. The function name would be encapsulated with the dt tag and informaiton about the function within the dd tag.

<dt>func_name</dt>
    <dd>- Gives you basic information on the function</dd>

Even if it's valid HTML, do you think it takes the original intention of the element to far out of scope to be considered within the sprint of the element?

1 answer

3
points
This was chosen as the best answer

The <dt> tag defines an item in a definition list.

The <dt> tag is used in conjunction with <dl> (defines the definition list) and <dd> (describes the item in the list).

It definitely goes against the standards to omit a parent object on a set structure and would lead to non-validated code.

Example of a properly structured definition list:

<dl>
  <dt>Google</dt>
  <dd>- an awesome company that is making some of the coolest apps and devices available</dd>
  <dt>Android</dt>
  <dd>- a mobile device friendly open-source operating system developed by Google</dd>
</dl>
Answered almost 7 years ago by Gary Hepting
  • Example code of properly structured definition list: <dl> <dt>Google</dt> <dd>- an awesome company that is making some of the coolest apps and devices available</dd> <dt>Android</dt> <dd>- a mobile device friendly open-source operating system developed by Google</dd> </dl> Gary Hepting almost 7 years ago
  • Good answer Gary. I've formatted the codes on your answer. o.k.w almost 7 years ago