Lesson #2
Example HTML Code
<html>
<title>This is the title of the page</title>
<body>
If one did not use special markup codes within the body of the html it would go on and on without line breaks or paragaph breaks. Each sentence would be run into the other like segments of an endless milliped. However, when line break codes are used the lines will break wherever the line break codes appear. This sentence has no line break codes in it so it goes on and on. The next sentence will have line breaks in it.
In this sentence you will notice <br> codes stuck in the sentences at semi-random <br>points.<br> As this special markup code is <br>being <br> used <br> they break the sentences up with line breaks. Do you <br> get the idea?
<br>
</body>
</html>
|
Example HTML Code as it would be rendered.
If one did not use special markup codes within the body of the html it would go on and on without line breaks or paragaph breaks. Each sentence would be run into the other like segments of an endless milliped. However, when line break codes are used the lines will break wherever the line break codes appear. This sentence has no line break codes in it so it goes on and on. The next sentence will have line breaks in it.
In this sentence you will notice codes stuck in the sentences at semi-random points. As this special markup code is being used they break the sentences up with line breaks. Do you get the idea?
|
- <br> Break
- This code instructs the browser to put a line break at the point in text where it appears. This is similiar to hitting a carriage return (for those of you old enough to remember the ancient device known as a typewriter) or Enter key (for the rest of us.)
There are several attributes that this tag can have. We will go over them later after image files have been introduced. For your information the attributes are:
- <br clear=all>
- <br clear=left>
- <br clear=right>
However, since these codes only take on meaning when images are introduced into the page we will wait until that time before endeavoring to explain them.
|
|