Beginning HTML - Inserting a Line Break
(Page 3 of 5 )
If you want to end a line but not start a new paragraph, you can use the Line Break tags, which look like this <br>. You will note that there is no closing tag for a line break. Observe this code:
<html>
<head>
<h1>MY Explanation!</h1>
<title>My Website</title>
</head>
<body>
<b>Hello, here is some bold text</b>
<p> Here is a paragraph</p>
<p><h2>Here is a paragraph with an H2 header </h2></p>
<p> Here is a paragraph <br> with <br> some <br> page breaks.
</body>
</html>
<! I am a comment! The computer does not see me tee-hee!>
This is the result of the above code:
MY Explanation!
Hello, here is some bold text
Here is a paragraph
Here is a paragraph with an H2 header
Here is a paragraph
with
some
page breaks.
There is another type of page break, but we will cover that later in the tutorial.
Next: Comments >>
More HTML Articles
More By James Payne