Today we will learn about description list in Html.
Using this type of list when we create a list It is a proper description and about the description type of thing that is created
Here is the syntax that is used in this :
<dt> Hello this is where you write description title</dt> <dd> Here you write desdription data </dd>
Let us create a example to see how it is implemented.
Final Output :
Step 1 : Create a proper html structure for your file.
Step 2 : Write following code inside the body tag.
Step 3 : run the file with any of the browser to see the output.
Full Code :
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>my first web page is here</title> </head> <body> <h2> <u> <dt>@Kamranrkploy</dt></u> <br> <dd>1) Joined Blurt in September.</dd> <dd>2) Became a Curator for @blurtutorials after 18 days</dd> <dd>3) Became a witness on 21st November</a> </h2> </body> </html>
You see that I created a description for myself.
and write about myself.
Well that's how we create a description list in html.