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