Cover Image for What does br mean in Html
74 views

What does br mean in Html

In HTML, the <br> tag is used to insert a line break or line break-like spacing between elements. The “br” stands for “line break.” It is an empty tag and does not require a closing tag.

Here’s an example of using the <br> tag in HTML:

HTML
<!DOCTYPE html>
<html>
  <head>
    <title>Line Break Example</title>
  </head>
  <body>
    <h1>Hello</h1>
    <p>This is some text.</p>
    <p>This is another line.<br>
    And this is a new line.</p>
  </body>
</html>

In the above example, the <br> tag is used inside the <p> tag to create a line break between the sentences “This is another line.” and “And this is a new line.” This causes the second sentence to appear on a new line.

The <br> tag can be useful for creating simple line breaks in paragraphs, addresses, or other text elements. However, it is recommended to use CSS for controlling the layout and spacing of elements whenever possible, as it provides more flexibility and control over the appearance of the page.

YOU MAY ALSO LIKE...

The Tech Thunder

The Tech Thunder

The Tech Thunder


COMMENTS