如何在 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.