Exploring the Internet Tutorials |
||
|
Microsoft FrontPage Tutorials - January 24, 2008 January 7, 2008 Complete the following tutorials in NotePad++. ------------------------------------------------------------------------------------------------------------------------------------------------------------- To access a list of color codes, access the following website: http://webmonkey.com/webmonkey/reference/color_codes To change the background color, use the following tag:
You have already learned the basic HTML tags that are common in most HTML documents. In addition to headings and paragraphs, probably the most common HTML element you’ll use is the list. HTML defines five kinds of lists:
List Tags All list tags have common elements: ˙ The entire list is surrounded by the appropriate opening and closing tag for the kind of list (for example,
Numbered Lists Numbered lists are surrounded by the
The Try the following example: This is an ordered list of steps for a nachos recipe with each list item a step in the set of procedures:
Ms. Wiley’s Awesome Nachos
____________________________________________________________________________________________________________________________________________________________________________________________ Attributes are extra parts of HTML tags that contain options or other information about the tag itself. You can customize ordered lists in two main ways: by how they are numbered and what number the list starts at. The TYPE attribute can take one of five values to define what type of numbering to use on the list: ˙ ˙ “1”: Specifies that standard Arabic numerals should be used to number the list (i.e., 1, 2, 3, 4, 5, and so on) ˙ ˙ “a”: Specifies that lowercase letters should be used to number the list (i.e., a, b, c, d, e, and so on) ˙ ˙ “A”: Specifies that uppercase letters should be used to number the list (i.e., A, B, C, D, E, and so on) ˙ ˙ “i”: Specifies that lowercase Roman numerals should be used to number the list (i.e., i, ii, iii, iv, v, and so on) ˙ ˙ “I”: Specifies that uppercase Roman numerals should be used to number the list (i.e., I, II, III, IV, V, and so on) Try the following example:
Cheesecake ingredients:
Using another attribute, START, you can specify what number or letter to start your list. The default starting point is 1, of course. Using START, you can change this number. For example,
Cheesecake ingredients:
Unordered ListsIn unordered lists, the elements can appear in any order. An unordered list looks just like an ordered list in HTML except that the list is indicated using
Lists in HTML
In unordered lists, the items are bulleted or marked with some other symbol. They can also be customized. If you use the TYPE attribute in the
˙ ˙ “disc”: A disc or bullet; this style is generally the default. ˙ ˙ “square”: Obviously produces a square instead of a disc. ˙ ˙ “circle”: As compared with the disc, this value should generate an unfilled circle on certain browsers. Try the following example:
Just as you can change the numbering pattern is the middle of an ordered list, you can change the type of bullet mid-stream in a list by using the TYPE attribute is the
___________________________________________________________________________________________________________________________________________________________________________________________________________________ Glossary ListsGlossary list are slightly different from other lists. Each list item in the glossary list has two parts: ˙ ˙ A term ˙ ˙ The term’s definition Each part of the glossary list has its own tag:
Following is a glossary list example with a set of herbs and descriptions of how they grow:
Glossary lists are usually formatted in browsers with the terms and definitions on separate lines, and the left margins of the definitions are indented. You don’t have to use the glossary lists for terms and definitions of course. You can use them anywhere that the same sort of list is needed. Here’s an example to try:
Nesting ListsWhat happens if you put a list inside another list? Nesting lists is fine as far as HTML is concerned; just put the entire list structure inside another list as one of its elements. The nested list just becomes another element of the first list, and it is indented from the rest of the list. Lists like this work especially well for menu-like items, such as in table of contents or as outlines. Indenting nested lists in HTML code itself helps show their relationship to the final layout: Try this example:
The following exercise shows you how to create an HTML file that uses the tags that you’ve learned about in this lesson. It will give you a feel for what the tags look like when they’re displayed onscreen and for the sorts of typical mistakes you’re going to make. Following is an example that includes structure tage, a title, a couple of headings, and a paragraph or two. Let’s try it:
”Many’s the long night I dreamed of cheese - - toasted, mostly.” - - Robert Louis Stevenson
We make cheese. Lots of cheese; more than eight tons of cheese a year.
We are paid an awful lot of money by people who like cheese. So we make more.
|