如何在 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 次檢視

開啟你的職業生涯

完成課程後獲得認證

開始學習
廣告