This example shows a description list with three web terms and their explanations. It uses semantic HTML and simple styling for clarity and accessibility.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Description List Example</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 1rem;
max-width: 600px;
margin: auto;
}
dl {
background-color: #f9f9f9;
border: 1px solid #ccc;
padding: 1rem;
border-radius: 0.5rem;
}
dt {
font-weight: bold;
margin-top: 1rem;
color: #2a2a2a;
}
dd {
margin-left: 1.5rem;
margin-bottom: 0.5rem;
color: #555;
}
</style>
</head>
<body>
<h1>Web Development Terms</h1>
<dl aria-label="Glossary of web development terms">
<dt>HTML</dt>
<dd>Standard language for creating web pages.</dd>
<dt>CSS</dt>
<dd>Styles the appearance of web pages.</dd>
<dt>JavaScript</dt>
<dd>Makes web pages interactive and dynamic.</dd>
</dl>
</body>
</html>