Hexadecimal Color Notation on the WebGet Web Design Tips and Tricks on mps-web-design.com. Hexadecimal Color Notation on the Web topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.
When designing elements for your webpage, you will often be called upon to specify a color. For example, the code for a span shown below specifies that the color of the text within the span will be yellow. Text Colors can be specified according to their names, for example "yellow", "green", or "blue". In many cases, these simple color names will work. But what if you want to specify a more sophisticated color like "cornflowerblue"? A particular browser may not recognize a particular color name. It's more reliable to specify colors with an "RGB triplet". An RGB triplet specifies a color based upon the amounts of red, green, and blue, on a scale from 0 to 255, required to create the color. For example, to create the color cornflowerblue you need red=100, green=149, and blue=237. We could then specify the color of the text within a span using the rgb function as shown below. Text This will work fine with style notation, but what if you want to use straight html. Html doesn't recognize the rgb function. In that case, you can specify color using "hexadecimal" notation. Whereas the decimal numbering system uses the characters 0 through 9 to get 10 values, the hexadecimal numbering system uses the characters 0 through f to get 16 values. (After 9 the characters a, b, c, d, e and f are used, as shown below.) Decimal Hexidecimal Equivilants
On first appearance, this looks pretty simple but you need two hexadecimal characters to represent all decimal values from 0 to 255. When you increment decimal 9 by 1, you change the 9 to 0 and put 1 in the ten's place. When you increment hexidecimal F by one, you change the F to 0 and put 1 in the "sixteens" place. Sometimes it's not easy to convert between decimal and hexadecimal in your head. RGB Triplet for Cornflowerblue
We could then specify the color of text within a span using the hexadecimal notation as shown below. Text Note that when we indicate the use of hexadecimal notation by placing a pound (#) sign in front of the number, and we don't use commas to separate the color components. If it's not easy to convert between decimal and hexadecimal in your head, then how do you do it? You can use a calculator that has a decimal to hexadecimal coversion function, or you can learn to think in hexadecimal. For example, what's the next number after CE? That would be CF. what's the next number after CF? That would be D0. Which hexadecimal number is higher 99 or B2? B2 would be higher than 99. It gets easier with experience. Here's Java Script code for a simple decimal to hexidecimal color converter
It's important to use hexadecimal notation to specify colors when you use DHTML with visual effects, because to create a dynamic color change you have to increment or add a value to a color. The vast amount of color specification on webpages is in hexadecimal notation, so it would be wise to become familiar with it. Copyright(C) Bucaro TecHelp. Permission is granted for the below article to forward, reprint, distribute, use for ezine, newsletter, website, offer as free bonus or part of a product for sale as long as no changes are made and the byline, copyright, and the resource box below is included. Skin Lightening Report. - This report shows you how to get rid of melasma, freckles, hyperpigmentation, skin discolorations and other pigment problems. Magic Tricks From 4-Magic-Tricks.Com. - The Most Powerful Magic Tricks You Can Do, Fully Explained with Color Photographs. Plus a Ton of Free Stuff and Bonus Offers. Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
More Articles:1. 10 Ways To Irritate Your Visitors By David Bell Let's face it. It is really hard to come up with new ways to fully irritate visitors to your site.I thought I would share some ways that I have found to irritate visitors and drive them away, thereby saving you money on your hosting bills. These tips are not in order according to their effectiveness, however #1 is by far the most effective. For 100% effectiveness, use any three of these techniques.1. Install a script to disable everyone's right mouse click button. When someone tries to right-c… 2. The psychology of color in web design The emotion of colors Color by virtue of its tremendous expressive qualities is one of the most effective tools in advertisements and presentations. Web design is no exception in this regard. Psychologists have found out that color impression can account for 60% of the acceptance or rejection of that product or service. Here's a brief elucidation on varying dimensions of color. There is a high degree of universality in the implicit meaning of color across cultures and geographies Name somet… 3. Lenticular and Holograms 3D Printing Software Buzz In the middle of rushing streets of businesses, more often than not people especially the professionals tend to be left behind with what is happening around for they attend too much in their course of business. Just like the newest innovation in software and other useful gadgets that they tend to regret its existence that can be a very good aid for their business.For instance, many are not acquainted with Lenticular and Holograms 3D Printing software that is a very good advancement in the printi… 4. How to Choose a Web Site Designer It seems that everyone from the 15-year-old kid to their Grandmother is able to design a web site these days. You could also build the site yourself using a word processor or other web site program; however if you choose this route, plan on spending quite a bit of time learning, to get your site to look professional.Creating a web site is not as simple as typing a letter.If you want your site to look professional, it is imperative to find a designer that will be with you from the start to the fi… |
||||