
Do you know what Br tag HTML is used for? Well, if you ever want to put a single line break between a paragraph or a line, then we use br tags in HTML.
These HTML tags help to add a single line break in our essays, poems, or other documentaries. Are you too confused about the uses of these Br tags in HTML? In this blog, we are going to clear your confusion around the <br> tags and highlight all the use cases of this HTML tag.
| <p>This is the first line. <br>This is the second line. </p> |
| <address> 123 Example Street<br> Cityville, CA 12345<br> USA </address> |
| Name: <input type="text"><br> Email: <input type="email"> |
| <br> |
| Attribute Value | Description |
|
It is used to indicate from where the line break starts. |
| <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="style.css" /> </head> <body> <h2>Event Day!</h2> <p> Hello Folks! hope you are having a great day.</p><br> <p> Thankyou! for being here today.</p> <script src="script.js"></script> </body> </html> |
Nowadays, all major browsers support <br> tags in their web browsers. However, the supported list of web browsers are mentioned below.
| <!-- HTML5: → This is the first line.<br>This is the second line. <!-- XHTML: → This is the first line.<br />This is the second line. |