如何在 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>
廣告
使用 <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>