The <dl> tag in HTML is used to represents the description list. This tag is used with <dt> and <dd> tag. In HTML4.1, it define definition list and in HTML5, it define description list.
Syntax:
<dl> Contents... </dl>
Example:
<!DOCTYPE html> < html > < head > < title >dl tag</ title > < style > h1, h2 { text-align:center; } h1 { color:green; } dl { margin-left:20%; } </ style > </ head > < body > < h1 >GeeksforGeeks</ h1 > < h2 >dl Tag</ h2 > < dl > < dt >GeeksforGeeks</ dt > < dd >A Computer Science Portal For Geeks</ dd > </ dl > </ body > </ html > |
Output:
Supported Browsers: The browser supported by <dl> tag are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
leave a comment
0 Comments