HTML 2--Adding and Formatting Text
Objectives
1. Add text to an HTML document.
2. Format text using the following tags:
<H1> ... </H1>
<H2> ... </H2>
<P> ... </P>
<B> ... </B>
<CENTER> ... </CENTER>
<BR>
<HR>
3. Preview homepage using a browser.
Instructions
Hi! My name is ... (in place of the ... insert your name, first and last initial.)
I am ... (add some text about yourself)
I like ... (add some text about some things you enjoy)
I dont like ... (add some text about some of the things you dont like)
My hobbies and interests are ... (add text about your hobbies or interests)
Page Master ... (add your name)
MJHS Web Master Tory Klementsen
Adding Formatting
<CENTER> ... </CENTER> To center the text
<H1> ... </H1> Headline tag which makes the text large and bold
On my homepage it would look like this:
<CENTER><H1>Hi! My Name is Tory K.</CENTER></H1>
You did remember to nest the containers correctly, didnt you?
6. For the rest of it you will use the following containers:
<B> ... </B> To make your text bold.
<BR> To insert a break...i.e. go down to the next line.
Use two to leave a blank line. Note: <BR> is one of
the few tags that do NOT need a slash tag.
<HR> Horizontal rule tag adds a horizontal line.
<P> ... </P> Paragraph container...sets text to the default size and makes it plain. It will usually be a Times font, but may be another font depending on what the user has his/her browser default font set to.
An example of what my page would look like at this point is on the next page.
My page would look like this:
<CENTER><H1>Hi! My Name is Tory K.</CENTER></H1>
<P><B>I am a business education teacher at Marysville Junior High School.</B><BR> Note...the <P> tag is still in effect.
I am married to a wonderful man, who is also a teacher. I have three cats: Mickey, Baby, and Einstein, and an Iguana named Hal. I live in a little yellow house with lots of flowers.<BR><HR></P>
11. Now format the rest of your sections (I like... I dont like... Hobbies...) the same way.
12. At the end you will format the Page Master (and add your name to it) with another headline container, only use <H3> ... </H3> instead of <H1>. You can leave the Web Master section plain...since its just little old me. (The district requires this on all pages.
QUESTIONS...answer on the bottom of your webpage after </HTML> using comments. To do this use the comment tag which goes like this <!...text here>. This tag does not need a slash tag.
1. What container do you use to make text large and bold?
2. What container do you use to center text?
3. What two tags have you learned that do not need slash-tags?
4. What does the <P> ... </P> do?
5. How do you insert a horizontal line on your page?
Okay to answer type the following on the bottom of your page:
<!... 1. You use a ....>
<!... 2. You use...>
<!... 3. this one, this one, and this one...>
<!... 4. It...>
<!... 5. Use the...>
Dont forget the closing
OH, and of course you did replace the elipses (except the first one after the exclamation point) with the correct answers, right?
Check it off!!