|
Tags and Text You obviously want to do more than post a simple "Hello" on the web. Let's start by learning how to do more with text.
You can make text bold by using the <b> tag:
NOTE: While you can use multiple tags, always nest the tags properly by closing them in the reverse order from which you opened them (e.g., in the sample above, <u> is the last tag opened and </u> is the first tag closed).
If we did
To break the text onto separate lines, we need to use the line break tag, <br>. This tag does not have a closing tag to go with it.
We could use the paragraph tag, <p>, instead of the line break tag, <br>,
Hello Hello
To change the size of a font, we use the <font size=n> command:
You may also see the <hn> command used:
Hello<h2>Hello</h2> = Hello<h3>Hello</h3> = Hello<h4>Hello</h4> = Hello<h5>Hello</h5> = Hello<h6>Hello</h6> = HelloLESSON 1 | HOME PAGE | LESSON 3 © Geo. McCalip 2001 |