|
||||
|
HTML, page 3
Now we will make the page title of your page look more like a title. Remember that the <head> is different from a page title. Viewers see the page title on the page. It helps them know what that page is about. The title tag is for use with the search engines and other media, such as Facebook. Note that this exercise is using an old-fashioned text formatting coding system just to illustrate how HTML works. These tags are "deprecated". They still work in modern browsers, but most of our formatting is now best done in CSS, which is another lesson entirely. First let's bold and center the page title.
The <b> and <center> tags wrap around your title. If you have forgotten to put the closing tags in (</b> and </center>), all the words on your page will be bold and centered. Notice that before the title, the tags are in the order: 1) paragraph, 2) bold, 3) center. When the tags close, they are in the opposite order. For simple tags like this, putting things out of order may work just fine, but as your code gets more complicated, things will start to break. It's a good idea to start with the practice of putting the tags in the proper order. That looks a little more like a title, but usually titles have a larger font size. One way to tell the browser to make the lettering size bigger is with H tags: <h1>, <h2>, <h3>, <h4>, <h5>, <h6>. <h1> is the largest font size. Try a couple of sizes on your page to see which one looks best to you. Notice that H tags also make the words bold. If your block of text doesnt have at least
two sentences, please add another sentence. To save space on these pages, I will only show the body part of the instructions.
The layout of your page is now easy for the eye
to follow, but rather boring. One of the things that is missing
is color. It is very important to consider you audience when you
choose colors. Remember that there a are a lot of folk out there
who have vision problems. There are two places we will use color
1) the background, 2) the letters.
Another new piece of code is the <hr> tag. It puts a line across the screen. If you put it inside the <blockquote> tag, the line goes only to the margins. Otherwise it will go all the way across the screen. Try both ways. |
||||
|
Nora McDougall | Missoula, Montana
59801 | 406.253.4045 |
Contact Nora
© 2012, Nora McDougall-Collins |
||||