Functions and usage of dl, dt, and dd
The <ul> or <ol> label is usually used when a list is used during webpage creation, but the <dl> label is rarely used. However, these three labels play a role that cannot be ignored, after all, use existing tags as much as possible in Web standards. Their purposes are:
<Dl> </dl> is used to create a common list,
<Dt> </dt> is used to create upper-layer projects in the list,
<Dd> </dd> is used to create the lowest-level project in the list,
<Dt> </dt> and <dd> </dd> must be placed between <dl> </dl> flag pairs.
The following code is available:
<Html>
<Head>
<Title> a common list </title>
</Head>
<Body text = "blue">
<Dl>
<Dt> bbbbb </dt>
<Dd> North c </dd>
<Dd> Upload c </dd>
<Dd> Guang c </dd>
<Dt> mmmmm </dt>
<Dd> seconds </dd>
<Dd> s Jia Ge </dd>
<Dd> About s </dd>
</Dl>
</Body>
</Html>
We can see that the text in the middle of <dt> </dt> is instantly not indented. How can it move forward, the content in the <dd> </dd> is automatically indented backward. This has been used in Tencent news comments.