What's the
tag for?

前端 未结 3 391
走了就别回头了
走了就别回头了 2021-02-03 18:04

Is there any logical reason for using the

,
and
tags instead of nested, CSS-styled
    and
      tags? Or are they just an outdated g
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 18:22

    From the W3C documentation:

    Definition lists vary only slightly from other types of lists in that list items consist of two parts: a term and a description. The term is given by the DT element and is restricted to inline content. The description is given with a DD element that contains block-level content.

    There are a couple of markup examples on the W3C page.

提交回复
热议问题