如何在 HTML 中插入单行换行符?


使用 <br> 标记在 HTML 中插入单行换行符。您可以尝试运行以下代码,使用 <br> 标记插入换行符 −

示例

<!DOCTYPE html>
<html>
   <head>
      <title>HTML br Tag</title>
   </head>
   <body>
      <p>This is before the line break<br />
      and this after the line break.</p>
   </body>
</html>

更新时间:2020 年 3 月 3 日

587 次浏览

为你的 事业铺路

完成本课程获得认证

开始行动
广告
© . All rights reserved.