Intro to HTML: Line Break
Home Learning Path LAMP HTML/CSS PHP MySQL JavaScript YouTube Blog PHP Fiddle

Intro to HTML: <br>

Quick Copy Boxes


<br> This is a br tag. It does not need an ending tag. <br> will insert a line break. When you insert a line break, your next portion of content will start on the next line.


<!DOCTYPE html>
<html>
  <head>
    <title>Coding Fun!</title>
  </head>
  <body>
    <div>
      Good Day Coding Cadets! <br>
      -- Commander Candy &#9829;
</div> </body> </html>

Assignment

Run the code in the editor below. Then display your own message. Make sure to use the <br> tag.