A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-br-tag/ below:

HTML br Tag - GeeksforGeeks

HTML br Tag

Last Updated : 28 Nov, 2024

The <br> tag in HTML is used to create a line break in the text, causing the content that follows it to appear on a new line.

Note: It is a self-closing tag, meaning it does not need a separate closing tag.

HTML
<!DOCTYPE html>
<html>

<body>
    <p>Dear Reader, <br>This is printed after a line break.</p>
</body>

</html>
Adding Line Breaks in Structured Content HTML
<!DOCTYPE html>
<html>

<body>
    <p>
        Hello, welcome to GeeksforGeeks<br>
        We hope you enjoy browsing.<br>
        Feel free to reach out with any questions.<br>
        Have a great day!
    </p>
</body>

</html>


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4