Help:Text color: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Fixed issues with examples. Either bugs in the code or vandalism by an editor.
Nnnnn
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
Set '''text''' color by using
Set '''text''' color by using
'''<nowiki><span style="color:#009999"></nowiki>'''
'''<nowiki><span style="color:#009999"></i>'''
<span style="color:#009999">'''This is an example...'''</span>'''<nowiki></span></nowiki>'''</span>
<span style="color:#009999">'''This is an example...'''</span>'''<nowiki></span></nowiki>'''</span>



Revision as of 08:43, 16 June 2020

Set text color by using <span style="color:#009999"></i>''' <span style="color:#009999">'''This is an example...'''</span>'''<nowiki></span>


Set background color by using <span style="background:#00FF00"> This is an example...</span>


Set both by using <span style="color:#FFFFFF; background:#FF69B4"> This is an example...</span>

Standard color names

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