html背景颜色代码????????

html-css07

html背景颜色代码????????,第1张

把body

{background-color:#0000ff}这行代码加到你原先的的代码中,如下:

<style

type="text/css">

/*<![CDATA[*/

<!--

body

{background-color:#0000ff}

a:link

{

text-decoration:

nonecolor:

black}

a:active

{

text-decoration:blink

test:expression(target="_blank")}

a:hover

{

text-decoration:underlinecolor:

red}

a:visited

{

text-decoration:

nonecolor:

green}

a.current

level_1:active{

test:expression(target="_self")}

a.level_1:active{

test:expression(target="_self")}

-->

/*]]>*/

</style>

其中,#0000ff是颜色值,通过修改这个值来改变你要的背景颜色

在HTML中font标签即可对字体内容设置颜色。

1、font语法:

<font color="#FF0000">我是红色字体</font>

首先font是一对常规标签,将字体文本内容放入标签内,font标签内设置color颜色+对应颜色值即可设置font标签对象内字体颜色。

2、html font设置字体颜色实例完整代码

<!DOCTYPE html> 

<html> 

<head> 

<meta charset="utf-8" /> 

<title>font字体颜色在线实例 DIVCSS5</title> 

</head> 

<body> 

<font color="#FF0000">我是红色字体</font> 

<table width="300" border="1"> 

<tr> 

<td><font color="#0000FF">你好</font></td> 

<td>DIVCSS5</td> 

</tr> 

</table> 

</body> 

</html>