网页颜色值
来源:互联网 发布:光爪网络 编辑:程序博客网 时间:2024/05/18 03:24
Tips and Notes
Note: The area element is always nested inside the map element. The area element defines the regions in the image map.
Note: The usemap attribute in <img> refers to the id or name (browser dependant) attribute in <map>, therefore we have added both the id and name attributes to <map>.
Example
<img src ="planets.gif"
width ="145" height ="126"
alt="Planets"
usemap ="#planetmap" />
<map id ="planetmap"
name="planetmap">
<area shape ="rect" coords ="0,0,82,126"
href ="sun.htm" target ="_blank"
alt="Sun" />
<area shape ="circle" coords ="90,58,3"
href ="mercur.htm" target ="_blank"
alt="Mercury" />
<area shape ="circle" coords ="124,58,8"
href ="venus.htm" target ="_blank"
alt="Venus" />
</map>
Click on one of the planets:
The Image Tag and the Src Attribute
In HTML, images are defined with the <img> tag.
The <img> tag is empty, which means that it contains attributes only and it has no closing tag.
To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display on your page.
The syntax of defining an image:
<img src="url">
The URL points to the location where the image is stored. An image named "boat.gif" located in the directory "images" on "www.w3schools.com" has the URL: http://www.baidu.com/logo.gif
The browser puts the image where the image tag occurs in the document. If you put an image tag between two paragraphs, the browser shows the first paragraph, then the image, and then the second paragraph.
The Alt Attribute
The alt attribute is used to define an "alternate text" for an image. The value of the alt attribute is an author-defined text:
Color Values
HTML colors can be defined as a hexadecimal notation for the combination of Red, Green, and Blue color values (RGB).
The lowest value that can be given to one light source is 0 (hex #00) and the highest value is 255 (hex #FF).
The table below shows the result of combining Red, Green, and Blue light sources:.
W3C Standard Color Names
W3C has listed 16 color names that will validate with an HTML validator.
The color names are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
<script type="text/javascript"><!--google_ad_client = "pub-6382933205019744";google_ad_width = 336;google_ad_height = 280;google_ad_format = "336x280_as";google_cpa_choice = "CAEaCHxO0Bid73DVUDRQBVBHUAhQAw";//--></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/cpa/ads?client=ca-pub-6382933205019744&cpa_choice=CAEaCHxO0Bid73DVUDRQBVBHUAhQAw&oe=gb2312&dt=1199777974531&lmt=1194270118&prev_fmts=336x280_as&format=336x280_as&output=html&correlator=1199777974531&url=http%3A%2F%2Favss.b15.cnwg.cn%2Fcount%2Fiframesellip3.htm&region=_google_cpa_region_&ref=http%3A%2F%2Fblog.csdn.net%2Fyzt4545454%2Farchive%2F2007%2F09%2F28%2F1805618.aspx&ga_vid=1341120477.1199777974&ga_sid=1199777974&ga_hid=945197642&flash=0&u_h=800&u_w=1280&u_ah=770&u_aw=1280&u_cd=32&u_tz=480&u_java=true" frameborder="0" width="336" scrolling="no" height="280" allowtransparency="allowtransparency"></iframe>Cross-browser Color Names
A collection of nearly 150 color names are supported by all major browsers.
Cross-browser Color Values
Some years ago, when most computers only supported 256 different colors, a list of 216 Web Safe Colors was suggested as a Web standard. The reason for this was that the Microsoft and Mac operating system used 40 different "reserved" fixed system colors (about 20 each).
We are not sure how important this is now, since most computers today have the ability to display millions of different colors, but the choice is left to you.
The 216 cross-browser color palette was created to ensure that all computers would display the colors correctly when running a 256 color palette:
000000 000033 000066 000099 0000CC 0000FF 003300 003333 003366 003399 0033CC 0033FF 006600 006633 006666 006699 0066CC 0066FF 009900 009933 009966 009999 0099CC 0099FF 00CC00 00CC33 00CC66 00CC99 00CCCC 00CCFF 00FF00 00FF33 00FF66 00FF99 00FFCC 00FFFF 330000 330033 330066 330099 3300CC 3300FF 333300 333333 333366 333399 3333CC 3333FF 336600 336633 336666 336699 3366CC 3366FF 339900 339933 339966 339999 3399CC 3399FF 33CC00 33CC33 33CC66 33CC99 33CCCC 33CCFF 33FF00 33FF33 33FF66 33FF99 33FFCC 33FFFF 660000 660033 660066 660099 6600CC 6600FF 663300 663333 663366 663399 6633CC 6633FF 666600 666633 666666 666699 6666CC 6666FF 669900 669933 669966 669999 6699CC 6699FF 66CC00 66CC33 66CC66 66CC99 66CCCC 66CCFF 66FF00 66FF33 66FF66 66FF99 66FFCC 66FFFF 990000 990033 990066 990099 9900CC 9900FF 993300 993333 993366 993399 9933CC 9933FF 996600 996633 996666 996699 9966CC 9966FF 999900 999933 999966 999999 9999CC 9999FF 99CC00 99CC33 99CC66 99CC99 99CCCC 99CCFF 99FF00 99FF33 99FF66 99FF99 99FFCC 99FFFF CC0000 CC0033 CC0066 CC0099 CC00CC CC00FF CC3300 CC3333 CC3366 CC3399 CC33CC CC33FF CC6600 CC6633 CC6666 CC6699 CC66CC CC66FF CC9900 CC9933 CC9966 CC9999 CC99CC CC99FF CCCC00 CCCC33 CCCC66 CCCC99 CCCCCC CCCCFF CCFF00 CCFF33 CCFF66 CCFF99 CCFFCC CCFFFF FF0000 FF0033 FF0066 FF0099 FF00CC FF00FF FF3300 FF3333 FF3366 FF3399 FF33CC FF33FF FF6600 FF6633 FF6666 FF6699 FF66CC FF66FF FF9900 FF9933 FF9966 FF9999 FF99CC FF99FF FFCC00 FFCC33 FFCC66 FFCC99 FFCCCC FFCCFF FFFF00 FFFF33 FFFF66 FFFF99 FFFFCC FFFFFF- 网页颜色值
- RGB转换网页颜色值
- 网页颜色
- 网页设计颜色十六进制值大全
- 网页中常用颜色色值
- 网页颜色列表
- 网页颜色图
- 网页设计中的颜色
- 网页设计中的颜色
- 网页设计中的颜色
- 关于网页界面颜色
- 网页设计中的颜色
- 网页设计中的颜色
- 网页颜色搭配技巧
- 网页颜色搭配表
- 网页颜色模式
- 网页颜色资料
- 网页中的颜色搭配
- 几个小站点链接
- 进入社会人是不是的靠撒谎过
- 动态语言和虚拟机实现, 暨介绍一下我设计的一个新型的动态语言(2)
- 一个老程序员的心里话
- C编程题(40)
- 网页颜色值
- 博客开张
- 什么是SOA
- Windows下的64位汇编(1)
- Portal 的概念和内涵
- C编程题(42)
- ASP.Net中控件的EnableViewState属性 【转】
- 老婆生气了,我很郁闷
- 关于tcp的prequeue的一些说明