我正在尝试使用 HTML 创建我的第一个网页。我正在使用以下代码:
<h3>Education: </hr3>
<ul>
<li> Bachelor's of Engineering in Electrical Engineering.</li>
<li> Completed 12th standard. </li>
<li> Completed 10th standard. </li>
</ul>
但是这段代码无法区分标题“Education”和无序列表。
完整的文本仅在标题下。
<h3>Education: </hr3>
<ul>
<li> Bachelor's of Engineering in Electrical Engineering.</li>
<li> Completed 12th standard. </li>
<li> Completed 10th standard. </li>
</ul>
教育应该在h3标题中,无序列表应该是纯文本。
最佳答案
标题的结束标记需要与标题的开始标记匹配——否则它不会停止开始标记的效果。简而言之:
<h3>Education: </hr3>
应该是
<h3>Education: </h3>
关于html - 为什么下面提到的代码无法区分 <hr3> 标题和普通文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58385928/