What is a <br> tag?

Experience Level: Junior
Tags: HTML

Answer

The <br/> tag:

  • Insert single line break.
  • Self cloasing teg.
  • Used for long paragraphs and long sentences.
Example

<html>
<head>...</head>
<body>
    <p>
        Lorem Ipsum is simply dummy text of the printing<br />
        and typesetting industry. Lorem Ipsum has been the industry's standard dummy text<br />
        ever since the 1500s, when an unknown printer took a galley<br />
        of type and scrambled it to make a type specimen book.
    </p>
</body>
</html>
Related HTML job interview questions
HTML for beginners
HTML for beginners

Are you learning HTML? Try our test we designed to help you progress faster.

Test yourself