Help:Text color

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by 120.29.78.208 (talk) at 06:19, 21 May 2019 (I love it). It may differ significantly from the current version.

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