This site is 📱 accessible. Tap here to use the mobile stylesheet.
This text is styled with some of the text formatting properties. The heading uses the text-align, text-transform, and color properties. The paragraph is indented, aligned, and the space between characters is specified. The underline is removed from this colored "Try it Yourself" link.
The
property is used to set the color of the text. The color is specified by:Look at CSS Color Values for a complete list of possible color values. The default text color for a page is defined in the body selector.
body { color: blue; } h1 { color: green; }
In this example, we define both the
property and the property:body { background-color: lightgrey; color: blue; } h1 { background-color: black; color: white; } div { background-color: blue; color: white; }