CodeLab
Show Output
 
xxxxxxxxxx
19
 
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
<meta charset="utf-8">
5
<title>Specify Colors in CSS using Hexadecimal Notation</title>
6
<style>    
7
    h1 {
8
        color: #ffa500;
9
    }
10
    p {
11
        color: #00ff00;
12
    }
13
</style>
14
</head>
15
<body>
16
    <h1>This is a heading</h1>
17
    <p>This is a paragraph.</p>
18
</body>
19
</html>
 

在微博、微信、公众号、小程序分享此示例。 如果您觉得有帮助,请给我们一个赞。