Home » Web programming/HTML

HTML 'br' Tag with Examples

HTML | <br> Tag: In this tutorial, we are going to learn about the Break (<br>) tag in HTML with its description, syntax, and examples.
Submitted by Shivang Yadav, on February 21, 2020

<br> Tag

<br> tag in HTML is used to add a linebreak in HTML webpage. It adds the cursor to a new line of the text in HTML.

Syntax:

<br>

Technical insights of <br> tag

  • It supports global attributes and attributes that handle events of HTML5.
  • Supported by all browsers.

Example:

<br>
<!DOCTYPE html>

<html>

<head>
    <title>HTML Tutorial at IncludeHelp</title>
</head>

<body>
    <h1>HTML tutorial</h1>
    <p>IncludeHelp provides tutorials on C,
        <br>C++,
        <br>Java,
        <br>Data Structure,
        <br>Algorithms,
        <br>and many latest technologies.</p>
</body>

</html>

Output

HTML | br Tag

See the above HTML code, we used <br> tag to break the lines to display programming languages in separate lines.



Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.