<hr> 雖簡單,但配合 CSS 能產出豐富分隔線:虛線、雙線、漸變、陰影、圖標連接線等。
<hr size=8 style="color:#ffd306; border-style:outset; width:490px;">
<hr size=1 style="color:#ff9999; border-style:double; width:490px;">
<hr size=1 style="color:blue; border-style:dotted; width:490px;">
<!-- 實線 -->
<hr style="border:0; border-top:1px solid #ccc; width:490px;">
<!-- 虛線 -->
<hr style="border:0; border-top:1px dashed #999; width:80%;">
<!-- 雙線 -->
<hr style="border:0; border-top:3px double red; width:490px;">
<!-- 漸變線 -->
<hr style="border:0; height:2px; background:linear-gradient(90deg, transparent, #007bff, transparent);">
<!-- 陰影立體 -->
<hr style="border:0; height:2px; background:#333; box-shadow:0 1px 2px rgba(255,255,255,.3);">
<!-- 中間帶圖標/文字 -->
<hr style="border:0; border-top:1px solid #ddd; position:relative;">
<style>
hr.icon::after { content:'★'; position:absolute; top:-0.6em; left:50%; transform:translateX(-50%); background:#fff; padding:0 0.5em; color:#e74c3c; }
</style>

aria-hidden="true" 或改用 <div class="divider">。<hr>,螢幕閱讀器會報讀「分隔線」。