Template:TextColors

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
{{{3}}}
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:TextColors/doc.


Usage[edit]

{{textColors|<font color>|<background color>|<text>}}

Sets the foreground and background colors of a given text inside a block table. They can be specified by name or in the format #dddddd (RGB hex triplet).

Examples[edit]

{{textColors|#ffffff|#000000|Example text}} produces

Example text

{{textColors|red|blue|Example text}} produces

Example text

Standard color names[edit]

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

Color Hexadecimal Color Hexadecimal
black #000000 silver #c0c0c0
gray #808080 white #ffffff
maroon #800000 red #ff0000
purple #800080 fuchsia #ff00ff
green #008000 lime #00ff00
olive #808000 yellow #ffff00
navy #000080 blue #0000ff
teal #008080 aqua #00ffff

See also[edit]