Background Colors in HTML
● Learn how to add colors to a <div> tag.
✓ <div> tags ✓ <style> tags ✓ hex color codes in HTML
• This tutorial is part of the Fan-Tasitic Project.
This background is an example of work inspired by this tutorial.
Step #1: Body Tag ~
✓ Open your index.html page in a text editor and look for the <body> tag …
Step #2: Add Style Code ~
✓ Add style code to the body tag like this:
Step #3: Background-Color Code ~
✓ Now add the background-color code …
Step #4: Choose your Colors ~
✓ Now, pick a color from the following HTML Basic Colors list:
✓ Type your color before the last "
Step #5: View Your Work ~
✓ Save your page by hitting the keyboard shortcut: Cmd(⌘)+S check out your color in your preferred browser!
Step #6: HTML Colors ~
✓ Unfortunately Red, Green, Blue - not much to choose from! However, there are MILLIONS of other colors available.
✓ Search the internet for background colors in HTML to find a unique color, and copy the Hex Code.
Step #7: HEX Code ~
✓ Paste the hex number including the #
✓ Using hex numbers give you MILLIONS of choices instead of just a few!
Last Step: Nothing to Attach ~
✓ Nothing to attach this time.
✓ Just continue working …
Other Resources: http://www.tizag.com/htmlT/htmlcolorcodes.php