Description lists are like a dictionary, or key value pairs. Basically, we will have a keyword and more details about that keyword.
To create description lists, we will use dl element. Inside dl element, for every keyword we will have dt tag, and corresponding explanations with dd tags.
Very simple indeed, but very useful especially when you are creating your first simple Content Management System, where there is need to return simple reports.
<!DOCTYPE html>
<html>
<head>
<title>Security Tutorials</title>
</head>
<body>
<h1>Definition Lists</h1>
<dt>Something Short</dt>
<dd>Something more about thing from above</dd>
<br>
<dt>ABBA</dt>
<dd>One of the greatest bands of all time</dd>
</body>
</html>
No comments:
Post a Comment