Search This Blog

Monday, 30 December 2013

1.10 HTML Line Breaks

Use the <br> tag if you want a line break (a new line) without starting a new paragraph:
Example:

<!DOCTYPE html>
<html>
<body>
<p>This is<br>a para<br>graph with line breaks</p>
</body>
</html>

The <br> element is an empty HTML element. It has no end tag.

No comments:

Post a Comment