HTML Break

HTML Break <br> tag is used to insert a single line break in a text. <br> is an empty tag, therefore, no end tag is required.

Break tag can be used to write addresses, poems, rhymes, etc., in an HTML document.

Examples

In the following example, we use Break element to write a rhyme. We break the text in paragraph using Break elements.

index.html

</>
Copy
<!DOCTYPE html>
<html>
    <body>
        <p>Twinkle, twinkle, little star,<br>
            How I wonder what you are.<br>
            Up above the world so high,<br>
            Like a diamond in the sky.
        </p>
    </body>
</html>

In the following example, we use Break element to break the text in Heading 2.

index.html

</>
Copy
<!DOCTYPE html>
<html>
    <body>
        <h2>HTML Tutorial<br>TutorialKart</h2>
    </body>
</html>

Conclusion

In this HTML Tutorial, we learned about HTML <br> tag and how to use it with examples.