Line Break Tag in HTML5

Line Break Tag in HTML5

Line Break Tag in HTML5

We can use a line break tag, <br> to control where your text breaks. Browsers normally wrap text automatically. A line of text that reaches the right side of the browser windows breaks and continues in the next line. We can insert a line break to instruct the browser a break the text at a specific place and go to a new line.

We can also use the <br> tag to add a blank line between paragraphs. This is useful if you want to add extra space above or below a block text or heading. By adding multiple <br> tags consecutively. we can increase the amount of space.

Table of Contents

Add a Line Break Tag

Step 1: Type <br> in front of the line of text that you want to appear as a new line.

Step 2: Type additional <br> tags for each line to the text where you want a line break.

Note: You do not need a closing tag of the <Br> Tag

Result output

To Execute the code click on Execute code in the top left of the code

<!DOCTYPE html>
<html>
    <Head>
        <Title>Coding thai</Title>
    </Head>
    <body>
       About Nepal 
       <p>
        Nepal, country of Asia, lying along the southern slopes of the Himalayan mountain ranges. 
        <br>
        <br>It is a landlocked country located between India to the east, south, and west and the Tibet Autonomous Region of China to the north.
        <br>
        <br>Its territory extends roughly 500 miles (800 kilometres) from east to west and 90 to 150 miles from north to south. The capital is Kathmandu.
       </p>
    </body>
</html>

More tags in HTML5

Follow us on Social media For cool Project