Background and Body Text Color
For your website, the first thing you will do is add a background color to the index.htm file. The HTML format for adding a solid color background involves modifying the <body> tag to read: <body bgcolor="#XXXXXX">where XXXXXX is the hexadecimal representation of the desired color. It's important to include the # (pound sign) which precedes the hex-dec.- Open your index.htm file in NotePad
- Find the <body> tag and change it to: <body bgcolor="#000000">
- Save and load the HTML file in a web browser
Your index page should now have a solid black background. Black on black! Now all you have to do is make the text a color that contrasts with black, so you can see it.
Change the color of the text to white. To make a general change to the text color of the entire document, modify the <body> tag to include the "text=#XXXXXX" attribute. Again, the XXXXXX represents the hex-dec representation of the desired color. To get a black backround (#000000) with white text (#FFFFFF) use the following code:
<body bgcolor="#000000" text="#FFFFFF">
NOW, save and reload the HTML file in a web browser.