Help:Text color: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Reverted 1 edit by 112.208.37.155 (talk). (TW)
Tag: Undo
No edit summary
Tags: Visual edit Mobile edit Mobile web edit
Line 27: Line 27:
|black
|black
| style="background:#000000; color:#ffffff; font-family:monospace;" |#000000
| style="background:#000000; color:#ffffff; font-family:monospace;" |#000000
|he
|silver
| style="background:#c0c0c0; color:#000000; font-family:monospace;" |#c0c0c0
| style="background:#c0c0c0; color:#000000; font-family:monospace;" |#c0c0c0
|-
|-
Line 40: Line 40:
| style="background:#ff0000; color:#000000; font-family:monospace;" |#ff0000
| style="background:#ff0000; color:#000000; font-family:monospace;" |#ff0000
|-
|-
|Py
|purple


| style="background:#800080; color:#ffffff; font-family:monospace;" |#800080
| style="background:#800080; color:#ffffff; font-family:monospace;" |#800080
|fuchsia
|fuchsia
| style="background:#ff00ff; color:#000000; font-family:monospace;" |#ff00ff
| style="background:#ff00ff; color:#000000; font-family:monospace;" |#ff00ff
|-
|-
|
|green
| style="background:#008000; color:#ffffff; font-family:monospace;" |'''#008000'''
| style="background:#008000; color:#ffffff; font-family:monospace;" |'''#008000'''
|lime
|lime
Line 62: Line 64:
|teal
|teal
| style="background:#008080; color:#000000; font-family:monospace;" |#008080
| style="background:#008080; color:#000000; font-family:monospace;" |#008080
|sc
|aqua
| style="background:#00ffff; color:#000000; font-family:monospace;" |#00ffff
| style="background:#00ffff; color:#000000; font-family:monospace;" |#00ffff
|}
|}

Revision as of 13:53, 16 June 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:

Color Hexadecimal Color Hexadecimal
black #000000 he #c0c0c0
gray #808080 white #ffffff
maroon #800000 red #ff0000
Py


#800080 fuchsia #ff00ff
#008000 lime #00ff00
olive #808000 yellow #ffff00
navy #000080 blue #0000ff
teal #008080 sc #00ffff

See also