|
Virginia's HTML—Headings |
Today we'll make some of the dullness disappear.
Open virginia.html in your text editor and in a browser. Position both so that you can easily click from one to the other.
|
<H1 ALIGN="center">Virginia's HTML . . . </H1> <H4 ALIGN="right">©2005, . . . </H4> |
That "ALIGN=" thingie is called an "attribute" of the <H1> tag. The "©" is called a "character entity"—it comes out as the copyright symbol. Character entities all start with an ampersand and end with a semicolon. In between are some letters that suggest the end result. The long dash in the preceding sentence is an "em dash" in English, or "—" in HTML.
|
<H1 ALIGN="center">This is Virginia's first web page.</H1> <H2 ALIGN="left">This is Virginia's first web page.</H2> <H3 ALIGN="right">This is Virginia's first web page.</H3> <H4 ALIGN="center">This is Virginia's first web page.</H4> <H5 ALIGN="right">This is Virginia's first web page.</H5> <H6 ALIGN="somewhere">This is Virginia's first web page.</H6> |
In your browser, reload the page and see what you've got. I've got this:
This is Virginia's first web page.This is Virginia's first web page.This is Virginia's first web page.This is Virginia's first web page.This is Virginia's first web page.This is Virginia's first web page. |
Two items here. First, headings 5 and 6 are pretty small. Many people won't be able to read them, so stay away, if possible. Second is the alignment (ALIGN="somewhere") of the <H6> heading. Legal values for the ALIGN attribute are "left", "center" and "right". Anything else is ignored and you get the default left alignment. (No error message or other warning—type carefully.)
Got it? Mine looks like this:
This is Virginia's first web page.This is Virginia's first web page.This is Virginia's first web page.This is Virginia's first web page.This is Virginia's first web page.This is Virginia's first web page. |
Remember that there are a lot of audiences out there. The researcher could be one of your peers, a professor, a potential employer, someone searching for a tennis partner or someone who wants to hire you to teach their kid(s) to play tennis. In many cases this page could be their first encounter—first impressions matter.
Think about what you want the page to say.