The <dt> tab defines an item in a definition list and a role in the dialog.
Differences between HTML 4.01 and HTML 5
HTML 5 introduces <dialog> tags. The,<dt> tag in dialog defines the role that the sentence belongs to. See also Example 2.
Example
Example 1
<dl> <dt>Coffee</dt> <dd>black Hot drink</dd> <dt>Milk</dt> <dd>white Cold drink</dd> </dl>
Example 2
<dialog> <dt> Teacher </dt> <dd>2+2 equals? Wind Network (www.ithov.com) </dd> <dt> Students </dt> <dd>4</dd> <dt> Teacher </dt> <dd> It's the right answer! Wind Network </dd> </dialog>
Property
Standard properties
Class, Contenteditable, ContextMenu, dir, draggable, id, irrelevant, lang, ref, Registrationmark, TabIndex, template, For a complete description of the title, please visit the standard properties in HTML 5.
Event Properties
Onabort, onbeforeunload, onblur, onchange, onclick, OnContextMenu, ondblclick, Ondrag, Ondragend, OnDragEnter, Ondraghttp://www.aliyun.com/zixun/aggregation/29841.html ">leave, OnDragOver, ondragstart, OnDrop, OnError, onfocus, onkeydown, onkeypress, onkeyup, onload, OnMessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup , OnMouseWheel, OnResize, Onscroll, Onselect, onsubmit, onunload For a complete description, please visit the event properties in HTML 5.
Tiy instances, defining lists
How to create a definition list.
<html> <body> <h2> a definition list:</h2> <dl> <dt> using computer upwind network (www.ithov.com) </dt> <dd> instruments for computing ... ...</dd> <dt> Monitor </dt> <dd> devices for visually displaying information ... ...</dd> </dl> </body> </html>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.