68.6k views
0 votes
Text line breaks and returns are controlled using which tags?.

.

1 Answer

2 votes

Text line breaks and returns are controlled using the <br> and <p> tags in HTML.

The <br> tag is used to insert a line break in a block of text, causing the text to start on a new line. For example:

Code:

This is some text<br>

that is broken up<br>

into separate lines.

The <p> tag is used to create a paragraph, which is a block of text that is separated from other blocks of text by a line break before and after it. For example:

Code:

<p>This is the first paragraph.</p>

<p>This is the second paragraph.</p>

Both the <br> and <p> tags are used to control the layout and formatting of text in HTML documents. It is important to use these tags correctly in order to ensure that the text is displayed properly and is easy to read.

User Kero
by
7.1k points