有 16 种颜色名被 W3C 的 HTML4.0 标准所支持它们是:aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, oliv。html颜色代码?更多详情请大家跟着小编一起来看看吧!

html颜色代码(1)

html颜色代码(1)

有 16 种颜色名被 W3C 的 HTML4.0 标准所支持。它们是:aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow。

其它可以颜色可以写RGB值

html颜色代码(2)

html颜色代码(2)

在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>