Problem Statement
Which tag is used to insert a line break?
Explanation
The br tag is used to insert a line break in HTML. It is a self-closing tag, which means it does not need a closing tag. You can write it as br or br slash in XHTML. The br tag creates a line break within text without starting a new paragraph. This is useful for addresses, poems, or anywhere you need text on a new line but do not want the extra spacing that comes with a new paragraph. However, you should not use multiple br tags to create spacing between elements. Use CSS margins or padding instead for proper spacing and layout control.
Code Solution
SolutionRead Only
<p>First line of text<br>Second line of text<br>Third line of text</p> <address> John Doe<br> 123 Main Street<br> City, State 12345 </address>
