1.设置大小
<span style="font-size:24px;">e.g. <h1> 10px is equal to 10pixels</h1></span>
<!DOCTYPE html>
<html>
<head>
<title>First font size change</title>
</head>
<body>
<p style="font-size: 10px"> Some text for you to make tiny! </p>
<p style="font-size: 20px"> Some text for you to make normal size!</p>
<p style="font-size: 40px"> Some text for you to make super big!</p>
</body>
</html>
2.设置颜色
<!DOCTYPE html>
<html>
<head>
<title>Changing the colors!</title>
</head>
<body>
<h1 style="font-size:16px;color:green">Big Heading</h1>
<p style="color:violet">A giant bear and a little duck were friends.</p>
<p style="color:red;font-size:10px">But the bear got hungry and ate the duck.</p>
</body>
</html>
3.设置字体
<!DOCTYPE html>
<html>
<head>
<title>Loving the font changes</title>
</head>
<body>
<h1 style="font-family: Arial">Big title</h1>
<ol>
<li style="font-family: Arial;font-size:16px">This item is big Arial.</li>
<li style="font-family: Verdana;font-size:12px">This item is medium Verdana.</li>
<li style="font-family: Impact;font-size:10px">This item is small Impact.</li>
</ol>
</body>
</html>
4.改变背景颜色
e.g.
<p style="background-color: red;">Hello!</p>
5.左右中对齐:
<p style="background-color: red;">Hello!</p>
<li style="text-align:left">The Hawthorn Football Club</li>
<li style="text-align:center">San Franscisco 49ers</li>
<li style="text-align:right">Barcelona FC</li>
6.加粗文字 :
在要加粗的文字两边加上<strong>、</strong>
7.使文字倾斜:
在object两边加上<em>、</em>