|Non-breaking space token|
|Hidden comment line|
brelement to force a line break at will. Conversely, there may be times where you want to insure that the flow of text does not break between two words. For this you will use non-breaking space token (
). No doubt, you will also want to know how to align your text to the left, right or in the center of your web page. And last but not least, you may be interested in how to place text in your HTML source code that remains hidden behind the scenes of the resulting web page.
brelement forces a line break anytime you want without having to place the text within a block level element. The
brelement is known as an 'empty' element because unlike other HTML elements, it typically contains no content or text between a start and end tag, and moreover does not even have an end tag. Hence the
brelement is rendered in HTML simply as
<br>. Put as many of them as you like. Each instance of the
<br>tag creates the equivalent of one line break on your web page.
<br>tag is versatile and lends itself to numerous applications. For example, you could simulate paragraphing without using the
pelement by putting two
<br><br>tags whenever you wish to begin a new paragraph. Or you could create extra blank space by stringing 3 or more
<br>tags together. Example:
This is the first line.
<br><br><br><br>The next line appears here after creating some vertical blank space using a string of 'br' elements.
in the source code although this is not what this was originally intended for. As the name implies, the original purpose of the non-breaking space token is to prevent the flow of text breaking to the next line in between two words that the author wishes to be displayed on the same line no matter what. For example, if the author was referring to the name Pepsi Cola and he wanted to be certain that the Cola part didn't break to the next line on the web page he would type
Pepsiin the source code.
alignattribute in the start tag of the block element containing the text and then using either
justifyas the value. This will apply the following effects respectively:
left- The beginning of each new line of text is aligned flush with the left margin of the block element.
right- The end of each line of text is aligned flush with the right margin of the block element.
center- Each line of text is aligned in the center of the block element.
justify- Each line of text is aligned flush to both the left and right margins of the block element. (For example, most of the text on the web page you are currently viewing is justified to both margins.)
<p align="right">In this paragraph, the text is aligned to the right.</p>
<!-- -->delimiters allows you to place text in the source code that web browsers will ignore when displaying the resulting web page.
<!-- INTRODUCTORY PARAGRAPH -->
<p><font face="verdana" size="2">This section will introduce the aspiring web author to fundamentals of writing Hypertext Markup Language...</font></p>
If you need a .COM web address, you can get one quick and easy at...