|
23 | 23 | pre { text-align:left } |
24 | 24 | pre.code { font-family: monospace } |
25 | 25 |
|
26 | | -table.html4colortable {margin:auto; width:80%; border:none } |
27 | | -table.html4colortable TD {border:none; padding:0} |
28 | | -td .colorsquare { display:block;width:16px;height:16px;border:2px solid black } |
29 | | - |
30 | | -table.x11colortable td {text-align:center } |
31 | | -table.x11colortable td.c { text-transform:uppercase } |
32 | | -table.x11colortable td:first-child, table.x11colortable td:first-child+td { border:1px solid black } |
33 | | -table.x11colortable th {text-align:center; background:black; color:white } |
| 26 | +table.colortable td {text-align:center } |
| 27 | +table.colortable td.c { text-transform:uppercase } |
| 28 | +table.colortable td:first-child, table.colortable td:first-child+td { border:1px solid black } |
| 29 | +table.colortable th {text-align:center; background:black; color:white } |
34 | 30 |
|
35 | 31 | table.tprofile th.title {background:gray; color:white} |
36 | 32 | table.tprofile th { width:29%;padding:2px } |
@@ -623,85 +619,202 @@ <h3 id=html4><span class=secno>4.1. </span>HTML4 color keywords</h3> |
623 | 619 | green, lime, maroon, navy, olive, purple, red, silver, teal, white, and |
624 | 620 | yellow. The color names are case-insensitive. |
625 | 621 |
|
626 | | - <table class=html4colortable> |
| 622 | + <table class=colortable> |
627 | 623 | <caption><b>Color names and <span class=index-inst id=srgb>sRGB</span> |
628 | 624 | values</b><br> |
629 | 625 | </caption> |
630 | 626 |
|
631 | 627 | <tbody> |
632 | 628 | <tr> |
633 | | - <td><span class=colorsquare style="background:black"></span> |
| 629 | + <th style="background:black">Named |
634 | 630 |
|
635 | | - <td>Black = #000000 |
| 631 | + <th>Numeric |
636 | 632 |
|
637 | | - <td><span class=colorsquare style="background:green"></span> |
| 633 | + <th>Color name |
638 | 634 |
|
639 | | - <td>Green = #008000 |
| 635 | + <th>Hex rgb |
| 636 | + |
| 637 | + <th>Decimal |
640 | 638 |
|
641 | 639 | <tr> |
642 | | - <td><span class=colorsquare style="background:silver"></span> |
| 640 | + <td class=c style="background:black"> |
643 | 641 |
|
644 | | - <td>Silver = #C0C0C0 |
| 642 | + <td class=c style="background:#000000"> |
645 | 643 |
|
646 | | - <td><span class=colorsquare style="background:lime"></span> |
| 644 | + <td>black |
| 645 | + |
| 646 | + <td class=c style="background:silver">#000000 |
647 | 647 |
|
648 | | - <td>Lime = #00FF00 |
| 648 | + <td class=c style="background:silver">0,0,0 |
649 | 649 |
|
650 | 650 | <tr> |
651 | | - <td><span class=colorsquare style="background:gray"></span> |
| 651 | + <td class=c style="background:silver"> |
| 652 | + |
| 653 | + <td class=c style="background:#C0C0C0"> |
652 | 654 |
|
653 | | - <td>Gray = #808080 |
| 655 | + <td>silver |
654 | 656 |
|
655 | | - <td><span class=colorsquare style="background:olive"></span> |
| 657 | + <td class=c style="background:silver">#C0C0C0 |
656 | 658 |
|
657 | | - <td>Olive = #808000 |
| 659 | + <td class=c style="background:silver">192,192,192 |
658 | 660 |
|
659 | 661 | <tr> |
660 | | - <td><span class=colorsquare style="background:white"></span> |
| 662 | + <td class=c style="background:gray"> |
661 | 663 |
|
662 | | - <td>White = #FFFFFF |
| 664 | + <td class=c style="background:#808080"> |
663 | 665 |
|
664 | | - <td><span class=colorsquare style="background:yellow"></span> |
| 666 | + <td>gray |
665 | 667 |
|
666 | | - <td>Yellow = #FFFF00 |
| 668 | + <td class=c style="background:silver">#808080 |
| 669 | + |
| 670 | + <td class=c style="background:silver">128,128,128 |
667 | 671 |
|
668 | 672 | <tr> |
669 | | - <td><span class=colorsquare style="background:maroon"></span> |
| 673 | + <td class=c style="background:white"> |
670 | 674 |
|
671 | | - <td>Maroon = #800000 |
| 675 | + <td class=c style="background:#FFFFFF"> |
672 | 676 |
|
673 | | - <td><span class=colorsquare style="background:navy"></span> |
| 677 | + <td>white |
674 | 678 |
|
675 | | - <td>Navy = #000080 |
| 679 | + <td class=c style="background:silver">#FFFFFF |
| 680 | + |
| 681 | + <td class=c style="background:silver">255,255,255 |
676 | 682 |
|
677 | 683 | <tr> |
678 | | - <td><span class=colorsquare style="background:red"></span> |
| 684 | + <td class=c style="background:maroon"> |
| 685 | + |
| 686 | + <td class=c style="background:#800000"> |
679 | 687 |
|
680 | | - <td>Red = #FF0000 |
| 688 | + <td>maroon |
681 | 689 |
|
682 | | - <td><span class=colorsquare style="background:blue"></span> |
| 690 | + <td class=c style="background:silver">#800000 |
683 | 691 |
|
684 | | - <td>Blue = #0000FF |
| 692 | + <td class=c style="background:silver">128,0,0 |
685 | 693 |
|
686 | 694 | <tr> |
687 | | - <td><span class=colorsquare style="background:purple"></span> |
| 695 | + <td class=c style="background:red"> |
688 | 696 |
|
689 | | - <td>Purple = #800080 |
| 697 | + <td class=c style="background:#FF0000"> |
690 | 698 |
|
691 | | - <td><span class=colorsquare style="background:teal"></span> |
| 699 | + <td>red |
| 700 | + |
| 701 | + <td class=c style="background:silver">#FF0000 |
692 | 702 |
|
693 | | - <td>Teal = #008080 |
| 703 | + <td class=c style="background:silver">255,0,0 |
694 | 704 |
|
695 | 705 | <tr> |
696 | | - <td><span class=colorsquare style="background:fuchsia"></span> |
| 706 | + <td class=c style="background:purple"> |
697 | 707 |
|
698 | | - <td>Fuchsia = #FF00FF |
| 708 | + <td class=c style="background:#800080"> |
| 709 | + |
| 710 | + <td>purple |
| 711 | + |
| 712 | + <td class=c style="background:silver">#800080 |
| 713 | + |
| 714 | + <td class=c style="background:silver">128,0,128 |
| 715 | + |
| 716 | + <tr> |
| 717 | + <td class=c style="background:fuchsia"> |
| 718 | + |
| 719 | + <td class=c style="background:#FF00FF"> |
| 720 | + |
| 721 | + <td>fuchsia |
699 | 722 |
|
700 | | - <td><span class=colorsquare style="background:aqua"></span> |
| 723 | + <td class=c style="background:silver">#FF00FF |
| 724 | + |
| 725 | + <td class=c style="background:silver">255,0,255 |
| 726 | + |
| 727 | + <tr> |
| 728 | + <td class=c style="background:green"> |
| 729 | + |
| 730 | + <td class=c style="background:#008000"> |
| 731 | + |
| 732 | + <td>green |
| 733 | + |
| 734 | + <td class=c style="background:silver">#008000 |
| 735 | + |
| 736 | + <td class=c style="background:silver">0,128,0 |
| 737 | + |
| 738 | + <tr> |
| 739 | + <td class=c style="background:lime"> |
701 | 740 |
|
702 | | - <td>Aqua = #00FFFF |
| 741 | + <td class=c style="background:#00FF00"> |
| 742 | + |
| 743 | + <td>lime |
| 744 | + |
| 745 | + <td class=c style="background:silver">#00FF00 |
| 746 | + |
| 747 | + <td class=c style="background:silver">0,255,0 |
| 748 | + |
| 749 | + <tr> |
| 750 | + <td class=c style="background:olive"> |
| 751 | + |
| 752 | + <td class=c style="background:#808000"> |
| 753 | + |
| 754 | + <td>olive |
| 755 | + |
| 756 | + <td class=c style="background:silver">#808000 |
| 757 | + |
| 758 | + <td class=c style="background:silver">128,128,0 |
| 759 | + |
| 760 | + <tr> |
| 761 | + <td class=c style="background:yellow"> |
| 762 | + |
| 763 | + <td class=c style="background:#FFFF00"> |
| 764 | + |
| 765 | + <td>yellow |
| 766 | + |
| 767 | + <td class=c style="background:silver">#FFFF00 |
| 768 | + |
| 769 | + <td class=c style="background:silver">255,255,0 |
| 770 | + |
| 771 | + <tr> |
| 772 | + <td class=c style="background:navy"> |
| 773 | + |
| 774 | + <td class=c style="background:#000080"> |
| 775 | + |
| 776 | + <td>navy |
| 777 | + |
| 778 | + <td class=c style="background:silver">#000080 |
| 779 | + |
| 780 | + <td class=c style="background:silver">0,0,128 |
| 781 | + |
| 782 | + <tr> |
| 783 | + <td class=c style="background:blue"> |
| 784 | + |
| 785 | + <td class=c style="background:#0000FF"> |
| 786 | + |
| 787 | + <td>blue |
| 788 | + |
| 789 | + <td class=c style="background:silver">#0000FF |
| 790 | + |
| 791 | + <td class=c style="background:silver">0,0,255 |
| 792 | + |
| 793 | + <tr> |
| 794 | + <td class=c style="background:teal"> |
| 795 | + |
| 796 | + <td class=c style="background:#008080"> |
| 797 | + |
| 798 | + <td>teal |
| 799 | + |
| 800 | + <td class=c style="background:silver">#008080 |
| 801 | + |
| 802 | + <td class=c style="background:silver">0,128,128 |
| 803 | + |
| 804 | + <tr> |
| 805 | + <td class=c style="background:aqua"> |
| 806 | + |
| 807 | + <td class=c style="background:#00FFFF"> |
| 808 | + |
| 809 | + <td>aqua |
| 810 | + |
| 811 | + <td class=c style="background:silver">#00FFFF |
| 812 | + |
| 813 | + <td class=c style="background:silver">0,255,255 |
703 | 814 | </table> |
704 | 815 |
|
| 816 | + <table class=colortable></table> |
| 817 | + |
705 | 818 | <div class=example> |
706 | 819 | <p style="display:none">Example(s):</p> |
707 | 820 |
|
@@ -2721,7 +2834,7 @@ <h3 id=svg-color><span class=secno>4.3. </span>SVG color keywords</h3> |
2721 | 2834 | of a table cell in two ways: The first column uses the named color value, |
2722 | 2835 | and the second column uses the respective numeric color value. |
2723 | 2836 |
|
2724 | | - <table class=x11colortable> |
| 2837 | + <table class=colortable> |
2725 | 2838 | <tbody> |
2726 | 2839 | <tr> |
2727 | 2840 | <th style="background:black">Named |
|
0 commit comments