November 30, 2006

HTML for Bloggers… (4) HTML Line Breaks

HTML for Bloggers… (4) HTML Line BreaksLast time we discussed HTML Paragraphs.  In this lesson, we are going to discuss HTML Line Breaks and show how they can be used. What does the HTML Line Break tag do?  An HTML Line Break tag adds a single line break to your text.  In contrast, the HTML Paragraph tag adds a double line break to your text. What does the HTML Line Break tag look like? Well, the HTML Line Break tag looks like this:   Note: An HTML Line Break tag is a little different from other tags in that it doesn’t have a ‘beginning tag’ and an ‘ending tag’ – just a single tag (shown above) – the HTML Line Break tag stands alone.    Let’s contrast the HTML Line Break tag with the HTML Paragraph tag.  In our last lesson, we saw that the HTML Paragraph tag puts a double "line break" in between sections – like so: results in: Do you see the double "line break"? Let’s look at the HTML Line Break tag in action.  Consider the following HTML ‘code’.   When we execute it, we get: Do you see the difference between the HTML Line Break tag and the HTML Paragraph tag? What is the practical use of the HTML Line Break tag? Really, the use of HTML Line Break tag is a matter of taste.  There’s no right and wrong here — it’s whatever looks right to the eye. In summary:

  • The HTML Line Break tag adds a single line break between text sections
  • The HTML Line Break tag is similar to the HTML Paragraph tag
  • Use of the HTML Line Break tag is a matter visual preference.

In our next lesson, we are going to discuss HTML Lists. Till Then…

Filed under HTML by .

Leave a Comment

Fields marked by an asterisk (*) are required.

Subscribe without commenting

Made with Semiologic Pro • Light Gold skin by Denis de Bernardy
Login