Your browser does not support JavaScript!
Upvotes Anonymous 0 User 0

How to add a line break in HTML

To add a line break to your HTML, you can use the following tag:
<br>
HTML Example
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>My Page</title>
</head>
<body>
  Hi.<br>
  My name is:<br><br>
  Tom Jones.
</body>
</html>
What does it look like?
Are there other ways to add line breaks?
Yes. Block elements (we'll get to this soon) such as the <div> element can achieve a similar visual effect.
Was this helpful?

Tags

Comments

Leave a Comment

I agree to the Terms of Service
Design © 2015, Downranked, LLC.,
Original user code contributions under MIT License