您的代码可以工作,但在未编号的列表中使用
<br>
在此上下文中,元素 br 不允许作为元素 ul 的子元素。 (抑制该子树的进一步错误。)
使用一些CSS,例如
li { margin: 20px 0; }