HTML | br Tag
The <br> tag in HTML is used to give the single line break. It is the empty tag so it does not contain end tag.
Syntax:
<br>
Example:
<!DOCTYPE html> < html > < head > < title >br Tag</ title > < style > body { text-align:center; } h1 { color:green; } </ style > </ head > < body > < h1 >GeeksforGeeks</ h1 > < h2 >br Tag</ h2 > <!-- br tag is used here --> < p >GeeksforGeeks: < br > Computer science portal</ p > </ body > </ html > |
chevron_right
filter_none
Output:
Supported Browsers: The browser supported by <br> tag are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.