Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-color/color-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 4: color property</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<link rel="match" href="greentext-ref.html">
<meta name="assert" content="This property describes the foreground fill color of an element’s text content.">
<style>
.test {color: green}
</style>
<body>
<p class="test">Test passes if this text is green</p>
</body>