首页 > 文章列表 > 如何在HTML中插入单行换行符?

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

441 2023-09-14

使用<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>