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
What is a <head> tag?
HTML JuniorWhat is a <button> tag?
HTML JuniorWhat is a <fieldset> tag?
HTML JuniorWhat is a <script> tag?
HTML JuniorWhat is a <ol> tag?
HTML Junior