HTML Background Color – How it Works


Including an html background coloration to a webpage will be one in every of best methods to jazz up the look of a website. However watch out, it may possibly additionally create a catastrophe for the general design of a web page. The trick is to be delicate, and select html colours that go with, moderately than take away from content material.

Crucial factor to think about in selecting html background coloration is the quantity of distinction it has with the web page textual content. It does not take a lot coloration within the background to make fonts troublesome to learn. If you happen to take into account that the only option for readability is black textual content on white background, that does not depart a lot room to experiment. Not that every one backgrounds should be white, however attempt to keep conservative in hex color code selections for this delicate a part of your web page design.

The html tag for background coloration turns into a part of the “physique” tag for that web page, situated instantly following the closed head tag. For instance:

(physique) tag now turns into (physique bgcolor) with=”#F5F5F1″)

In an html editor, like Dreamweaver, go to the primary menu and search for MODIFY after which PAGE PROPERTIES.

The html background coloration code is a hexadecimal quantity, a six-digit set of characters that may embody nearly any mixture of numbers 1 – 9 and letters A – F. If you realize the RGB values for the colour you wish to use, you will must covert these numbers to the only hex code. Most internet graphics modifying applications will simply do that for you. If you need to know the way that every one works, there are various web sites that specify the method.


Leave a Reply

Your email address will not be published. Required fields are marked *