How to insert a single line break in HTML?


Use the <br> tag to insert a single line break in HTML. You can try to run the following code to insert a line break using the <br> tag −

Example

<!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>

Updated on: 03-Mar-2020

532 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements