How to add a line break in HTML

To add a line break to your HTML, you can use the following tag:


HTML Example

<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <title>My Page</title>
  My name is:<br><br>
  Tom Jones.

The result

web page

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.

Next: How to create a link in HTML


Leave a comment

What color are green eyes? (spam prevention)
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.