In HTML, the line break tag <br>
is used to insert a line break in the content.
- The
<br>
tag inserts a single line break. - The
<br>
tag is an empty tag which means this tag does not need a close tag.
Syntax
<br>
or
<br/>
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Line Break</title>
</head>
<body>
<p>This is the first line.<br>This is the second line.</p>
</body>
</html>
Output