Style and color |
|
Comment |
|
Comments are read by humans, and ignored by the computer. You should use comments to make it clear what you are doing. I put a comment at the beginning of each section. Sometimes I add a comment when I do something unusual.
Comments begin with |
|
Style - Internal styles |
|
Internal styles can be used to change the appearance of the elements in a page. For example, you can make the background color for all paragraphs lime and the color of the text navy.
To code an internal style, we put a style element within the head container. |
|
Style - External styles |
|
External styles are exactly like internal styles, except the styles are put in a separate file. This is very valuable. One style sheet file can be used with many html pages. This is very good when you want to make many pages look the same. You have probably noticed many of my web pages have a similar look. I use one common style sheet for most of my instructional pages. Most styles are put in external style sheets. External style sheets are easier to manage. You can see the link, needed to use a style sheet in an external file, in the sample. |
|
Style - Inline style |
|
Another technique is to a style property and its value inside a html element. To do this put a style attribute in the html element. You do not need to select what you are changing with the style; it is this element. Inside the value of the style attribute, put the style property and value. Look at the sample. |
|
Style - Conflicting styles |
|
If there are several conflicting styles, the closest and most specific one wins. For example, if there is an inline style and an external style that conflict, the inline style wins. Another example, if there is an internal style and an external style, the internal style wins. |
|
Color - Color names |
|
You often need a color for the value of a style property. There are approximately 140 standard color names. The link provides a listing of color names names |
|
Color - Color numbers |
|
If you wish to use more colors use color numbers. See the discussion in the linked page. |
|
Other property values |
|
Here are some other values you may use with some style properties.
|
|
Lab 3 |
|
Now you are ready to build your lab 3 web page. |
|
Put your web page on the Internet |
|
Upload your |
|
Complete lab |
|
The following web pages need to have been uploaded to your public_html directory in voyager:
Make sure each page works correctly on voyager. Make sure the links from the index page work for each of the three lab pages. Make sure each of the three lab pages has a link back to the index page. Then submit assignment 3 in Canvas. The assignment submission should say: Lab 3 is complete. |
|
Reading assignment |
|
Read information that your find relivant from the book you selected. |
|