HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>Here is a new blog entry about the “maladies” that coders are susceptible to. (Don’t worry! You won’t catch any of them if you are a diligent student in this course.) Each disease has a description, and some even have several such descriptions. The last list type (the description list) is the most suitable for marking up such information.</p>
1 <p>Here is a new blog entry about the “maladies” that coders are susceptible to. (Don’t worry! You won’t catch any of them if you are a diligent student in this course.) Each disease has a description, and some even have several such descriptions. The last list type (the description list) is the most suitable for marking up such information.</p>
2 <p>The description list is good for marking up questions and answers, terms and definitions, as well as categories and topics. It is created using three tags:</p>
2 <p>The description list is good for marking up questions and answers, terms and definitions, as well as categories and topics. It is created using three tags:</p>
3 <ul><li>&lt;dl&gt; (short for “description list”) designates the description list itself;</li>
3 <ul><li>&lt;dl&gt; (short for “description list”) designates the description list itself;</li>
4 <li>&lt;dt&gt; (which is short for “description term”) designates the term;</li>
4 <li>&lt;dt&gt; (which is short for “description term”) designates the term;</li>
5 <li>&lt;dd&gt; (which is short for “description definition”) designates the description or definition.</li>
5 <li>&lt;dd&gt; (which is short for “description definition”) designates the description or definition.</li>
6 </ul><p>The &lt;dt&gt; and &lt;dd&gt; tags are written within &lt;dl&gt;.</p>
6 </ul><p>The &lt;dt&gt; and &lt;dd&gt; tags are written within &lt;dl&gt;.</p>
7 <p>Each &lt;dl&gt; list can contain one or more terms and one or more descriptions for each term. Code example:</p>
7 <p>Each &lt;dl&gt; list can contain one or more terms and one or more descriptions for each term. Code example:</p>
8 &lt;dl&gt; &lt;dt&gt;HTML&lt;/dt&gt; &lt;dd&gt;Hypertext Markup Language&lt;/dd&gt; &lt;dt&gt;CSS&lt;/dt&gt; &lt;dd&gt;Cascading Style Sheets&lt;/dd&gt; &lt;dd&gt;A language for formatting the presentation of HTML documents&lt;/dd&gt; &lt;/dl&gt;<p>By default, the browser adds a small indent to the left of the definitions.</p>
8 &lt;dl&gt; &lt;dt&gt;HTML&lt;/dt&gt; &lt;dd&gt;Hypertext Markup Language&lt;/dd&gt; &lt;dt&gt;CSS&lt;/dt&gt; &lt;dd&gt;Cascading Style Sheets&lt;/dd&gt; &lt;dd&gt;A language for formatting the presentation of HTML documents&lt;/dd&gt; &lt;/dl&gt;<p>By default, the browser adds a small indent to the left of the definitions.</p>
9 <p>You might see &lt;dl&gt; referred to as an “association list” (which the current HTML specification calls it), or as a “definition list” (as it was called in the previous version of HTML). They all mean the same thing.</p>
9 <p>You might see &lt;dl&gt; referred to as an “association list” (which the current HTML specification calls it), or as a “definition list” (as it was called in the previous version of HTML). They all mean the same thing.</p>