What does the HTML element <br> represent?
Correct answer
B. Break
12 views
B. Break
12 views
The HTML <br> element represents a line break or a newline within text. It is a self-closing tag, meaning it does not have a corresponding closing tag. When the browser encounters <br>, it inserts a line break at that point, causing the content following it to appear on a new line. Example
<p> Roses are red,<br>
Violets are blue,<br>
Sugar is sweet,<br>
And so are you. </p>
Not sure why the answer is B? Ask here and get an explanation.