参考:https://www.runoob.com/html/html-css.html
文字颜色:
<!DOCTYPE html>
<html>
<head>
</head>
<p style="color:blue;margin-left: 30px;">租住的是一间豪华套间</p>
<p style="color:red;margin-left: 15px;">租住的是一间豪华套间</p>
<p style="background-color: greenyellow; color: brown; font-size: 20px;">北京绿色</p>
<p style="background-color: black; color: white; font-size: 40px; text-align: center;">测试一下文字居中</p>
</html>
结果: