Help:Text color: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
m Reverted changes by 49.145.138.72 (talk) to last version by Tegel
Tag: Rollback
I love it
Tags: Visual edit Mobile edit Mobile web edit
Line 20: Line 20:
{| class="wikitable" border="0"
{| class="wikitable" border="0"
|+
|+
IM The Beast
!Color
!Color
!Hexadecimal
!Hexadecimal
Line 26: Line 27:
|-
|-
|black
|black
| style="background:#000000; color:#ffffff; font-family:monospace;" |#000000
| style="background:#000000; color:#ffffff; font-family:monospace;" |A
|silver
|silver
| style="background:#c0c0c0; color:#000000; font-family:monospace;" |#c0c0c0
| style="background:#c0c0c0; color:#000000; font-family:monospace;" |#c0c0c0
|-
|-
|gray
|gray
| style="background:#808080; color:#ffffff; font-family:monospace;" |#808080
| style="background:#808080; color:#ffffff; font-family:monospace;" |E
|white
|white
| style="background:#ffffff; color:#000000; font-family:monospace;" |#ffffff
| style="background:#ffffff; color:#000000; font-family:monospace;" |#ffffff
|-
|-
|maroon
|maroon
| style="background:#800000; color:#ffffff; font-family:monospace;" |#800000
| style="background:#800000; color:#ffffff; font-family:monospace;" |B
|red
|red
| style="background:#ff0000; color:#000000; font-family:monospace;" |#ff0000
| style="background:#ff0000; color:#000000; font-family:monospace;" |#ff0000
|-
|-
|purple
|purple
| style="background:#800080; color:#ffffff; font-family:monospace;" |#800080
| style="background:#800080; color:#ffffff; font-family:monospace;" |I
|fuchsia
|fuchsia
| style="background:#ff00ff; color:#000000; font-family:monospace;" |#ff00ff
| style="background:#ff00ff; color:#000000; font-family:monospace;" |#ff00ff
|-
|-
|green
|green
| style="background:#008000; color:#ffffff; font-family:monospace;" |'''#008000'''
| style="background:#008000; color:#ffffff; font-family:monospace;" |M
|lime
|lime
| style="background:#00ff00; color:#000000; font-family:monospace;" |#00ff00
| style="background:#00ff00; color:#000000; font-family:monospace;" |#00ff00
|-
|-
|olive
|olive
| style="background:#808000; color:#ffffff; font-family:monospace;" |#808000
| style="background:#808000; color:#ffffff; font-family:monospace;" |T
|yellow
|yellow
| style="background:#ffff00; color:#000000; font-family:monospace;" |#ffff00
| style="background:#ffff00; color:#000000; font-family:monospace;" |#ffff00
|-
|-
|navy
|navy
| style="background:#000080; color:#ffffff; font-family:monospace;" |#000080
| style="background:#000080; color:#ffffff; font-family:monospace;" |H
|blue
|blue
| style="background:#0000ff; color:#ffffff; font-family:monospace;" |#0000ff
| style="background:#0000ff; color:#ffffff; font-family:monospace;" |#0000ff
|-
|-
|teal
|teal
| style="background:#008080; color:#000000; font-family:monospace;" |#008080
| style="background:#008080; color:#000000; font-family:monospace;" |E
|aqua
|aqua
| style="background:#00ffff; color:#000000; font-family:monospace;" |#00ffff
| style="background:#00ffff; color:#000000; font-family:monospace;" |#00ffff

Revision as of 06:19, 21 May 2019

Set text color by using <span style="color:#009000"> TEXT </span>

Set background color by using <span style="background:#00FF00"> TEXT </span>

Set both by using <span style="color:#FFFFFF; background:#FF69B4"> TEXT </span>

Standard color names

The HTML 4.01 specification defines sixteen named colors, as follows:

IM The Beast
Color Hexadecimal Color Hexadecimal
black A silver #c0c0c0
gray E white #ffffff
maroon B red #ff0000
purple I fuchsia #ff00ff
green M lime #00ff00
olive T yellow #ffff00
navy H blue #0000ff
teal E aqua #00ffff

See also