answersLogoWhite

0

What is the br tag used for?

Updated: 12/22/2022
User Avatar

Wiki User

8y ago

Best Answer

The <br> tag (or <br/> in XHTML) is used to cause a line-break. This is sometimes called a "carriage return" or "newline" (or sometimes both.)

Essentially, the line-break tag moves the text that follows it down to the next line, and returns the carriage to the beginning of the line.

In modern HTML, the <br> tag is also often used to create a clearing element. This element has its CSS clear property set to "all." By placing this as the last element in an element containing floated elements (read "columns") you can cause the container to stretch to fit both columns inside it.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the br tag used for?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the full form of BR in HTML?

The correct HTML form for BR is . BR is a tag to force a line break. It was introduced as a single tag, with no companion tag. The and tags work with older HTML, but for HTML 5, you need to have an ending tag for each tag. You can create your own ending tag by adding forward slash within the single tag: .


What is a style tag?

A style tag can be used in a page to define an internal style sheet. You usually put it in the head area and define styles you want to be used in the page. So you start with the style tag, put all your style definitions between it and the closing style tag. The below code creates styles for the p and h1 tags.p {color:gold; font-size:14pt;}h1 (color:red}


What is the correct HTML tag for a inserting a line break?

&lt;br&gt;


What are two-sided tags?

A two-sided tag is one that has an opening tag and a closing tag, such as &lt;a&gt; and &lt;/a&gt;. This is in contrast to other tags, like &lt;br&gt; and &lt;img&gt;, which do not need closing tags.


Why do you need a BR tag in HTML when you already have an HR tag?

Because they do different things. A BR tag creates a new line break, putting the next thing you do onto a new line. The HR tag draws an actual line across the screen, something the BR tag does not do.


What is the tag for break or return?

&lt;br&gt; Yep, it's that simple for simple HTML ^^ If you are working with XHTML however, the tag will be &lt;br /&gt;


What HTML tag would you use to indicate a line break?

A tag is used to insert a line break. This tag is the HTML way of outputting a new line.


Is break a line break tag?

No, the break line tag is: &lt;br /&gt;


How many attributes does the BR tag have in HTML?

The BR tag has only the core tags, which all HTML tags have. These are id, class, style and title.


What is the type of tag that physically changes the text on your page?

Depricated MethodBrowsers will not look for this tag very soon. Use with caution!Formatted TextNew, CSS MethodTextor....myTextFormat{font-family: Arial;font-size= 2em;font-weight: bold;color: #ffcc00;}Formatted Text


What tag places a carriage return on your webpage?

The &lt;BR&gt; tag is used to insert carriage returns on your web page. For ex: This is line one &lt;BR&gt; This is line two The above text when pasted into a HTML page will get displayed as: This is line one This is line two The &lt;BR&gt; tag has added one carriage return on the web page though we typed the whole text in one line.


What is the tag for posting the current date in HTML website?

var today = new Date();document.write(today);