HTML dl dt dd tag

 HTML <dl> <dt> and <dd> tags are a kind of typesetting technique for web pages, which can produce indentation effects. The levels of <dl>, <dt> and <dd> tags are different, and the writing rules are < dd></dd> tags are contained in <dt></dt> tags, and <dt></dt> tags are contained in <dl></dl> tags, forming a complete list group, list Each item in has an item title and item description. Such typesetting skills are often used in HTML web page copywriting.


HTML dl dt dd tag basic syntax
<dl>
 <dt>Project title</dt>
 <dd>Project description...</dd>
 ...
</dl>
Label definition
labeldefinition
<dl></dl>
Definition List
<dt></dt>
Definition Term, item
<dd></dd>
Definition Description

HTML dl dt dd example
<dl>
 <dt>Project Title One</dt>
 <dd>Here is Project Description One...</dd>
 <dt>Project Title Two</dt>
 <dd>Here is Project Description Two...< /dd>
</dl>
The output of the above example is
Project Title One
Here is the project description one...
Project Title Two
Here is the project description two...
In principle, <dl></dl> will not show special effects, but a list space will be announced on the page, so that each item can be fully presented in the space, the item title <dt></dt> and bullets < dd></dd> is a set of collocations, in which bullets will automatically produce indentation by default. Because this is a common typesetting method in this article, all mainstream browsers support HTML dl dt dd tags. It should be noted that <dl></dl> tags cannot be confused with HTML table tags.

Post a Comment

0 Comments