forked from techbow/LAWeb4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStyling.html
27 lines (23 loc) · 1.14 KB
/
Styling.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"
</head>
<body style="background-color:lightblue">
<h1 style="color:red">我是红色</h1>
<h2 style="color:blue">你是蓝色</h2>
<!--The color property defines the text color to be used for an HTML element:-->
<h3 stytle="color:blue">change the color of text</h3>
<!--The font-family property defines the font to be used for an HTML element:-->
<h4 style="font-family:verdana">the font sytle is verdana</h4>
<h5 style="font-size:160%">change text size</h5>
<!--The text-align property defines the horizontal text alignment for an HTML element:-->
<h6 style="text-align:center">centered heading</h6>
<p style="font-family:courier">the font stytle is courier</p>
<p style="color:red">change color</p>
<!--The font-size property defines the text size to be used for an HTML element:-->
<p style="font-size:300%">change the size of paragraph</p>
</body>
</html>
<!--Every HTML element has a default style (background color is white and text color is black).Changing the default style of an HTML element, can be done with the style attribute.-->
<!--格式:style="property:value"-->