The <dir>
tag was used in HTML 4 to list directory titles.
Use <ul> to create a directory list:
<ul>
<li>html</li>
<li>xhtml</li>
<li>css</li>
</ul>
Try it Yourself »
Reduce line-height in a list (with CSS):
<ul style="line-height:80%">
<li>html</li>
<li>xhtml</li>
<li>css</li>
</ul>
Try it Yourself »
Tip: In our CSS tutorial you can find more details about styling lists.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!