Background Colors in HTML

    ●    Learn how to add colors to a <div> tag.

Learn About:

<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 "

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

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: