|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Possibly the most useful reason to know something about HTML is so you are able to adjust your pages after creating them with WYSIWYG programs because they often do things you don't want. Instead of writing code and making pages, we are going to alter the pages as we learn. By adding a simple code to the <body> tag we can adjust the color of the page. Colors are represented by six digit combinations of numbers and letters, i.e. 999AB3 and color names, like "blue". Follow these steps to change the color of this page.
Your body tag should look something like this:
A note on hexadecimal numbers: these are numbers
in base 16 and therefore need 16 digits to represent the numbers.
The digits are the familiar 0 through 9, plus A, B, C, D, E and
F. The first two digits in your six-digit number refer to the
amount of RED in the color.
The next two digits refer to the amount of GREEN
in the color, and the last two digits refer to the amount of BLUE in the color. Contrary to common sense, FFFFFF is
white (lots of red, green and blue mixed together), while 000000
is black (absence of any color). Here are some sample color codes: Grays are represented by numbers that all have the same digit: You can have lots of fun by trying different number combinations!
Intro to HTML
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The contents of the Web Institute Web Site, including the On-Line Curriculum, Web Tank, and Session Notes, are Copyright 1999-2000, Graham School of General Studies, University of Chicago. No one may print, copy, or otherwise reproduce these materials without the express written permission of the Director of Education Programs at the Graham School. All rights reserved. The chapters from Curriculum Webs: A Practical Guide to Weaving the Web into Teaching and Learning are Copyright 1999-2000, Craig A. Cunningham and Marty Billingsley. No one may print, copy, or otherwise reproduce these materials without the express written permission of the authors. All rights reserved. |
The contents of the Web Institute Web Site, including the On-Line Curriculum, Web Tank, and Session Notes, are Copyright 1999-2001, Graham School of General Studies, University of Chicago. No one may print, copy, or otherwise reproduce these materials without the express written permission of the Director of the Web Institute for Teachers or the Dean of the Graham School. All rights reserved. |