HTML5: How to define a description list?
Solution :
HTML Code :
Explanation:
- The document starts with the doctype declaration specifying that it is an HTML5 document.
- Inside the <html> tags, the HTML document structure begins.
- The <head> section contains metadata about the document, including the character encoding specified using the meta tag.
- The <title> element sets the title of the HTML document.
- The <body> section is where the visible content of the webpage resides.
- <dl> defines a description list.
- <dt> represents a term in the list.
- <dd> represents the description or definition of the term.
- The HTML document ends with the closing </html> tag.
Live Demo :
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.