HTML and CSS Certification Practice Test

Question: 1 / 400

What HTML tag is used for inserting a line break?

<br>

The tag used for inserting a line break in HTML is the `<br>` tag. This is a void or self-closing tag, meaning it does not require a closing tag and can be used anywhere in the text to create a break in the content. When the `<br>` tag is encountered in the document, it prompts the browser to move the following content to the next line, allowing for better control over text formatting.

Other tags such as `<p>` are used for creating paragraphs, which inherently include spacing above and below the text but do not function as line breaks within the same paragraph. The options `<break>` and `<line>` are not valid HTML tags and therefore do not perform any action related to line breaks in HTML documents. Understanding the specific role of the `<br>` tag is essential for effective layout and design in web development.

Get further explanation with Examzify DeepDiveBeta

<p>

<break>

<line>

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy