HTML样式实例-背景色
Background-color属性定义元素的背景颜色。
Html
body style=' background-color : yellow '
h2style=' background-color : red ' this is a heading/H2
p style=' background-color : green ' this is a paragraph。/p
/body
/html
HTML样式:好看的彩色字体有方法
HTML样式实例-字体、颜色和大小
Font-family、color和font-size属性分别定义元素中文本的字体系列、颜色和字体大小。
Html
菩提
H1型式=' font-族群3360 verdana' a heading/h1
p style=' font-family : arial;Color:redfont-size :20 px;'是A paragraph。/p
/body
/html
HTML样式:好看的彩色字体有方法
HTML样式实例-文本对齐方式
Text-align属性指定元素中文本的水平对齐方式。
Html
菩提
h1style=' text-align : center ' this is a heading/h1
pthe heading above is aligned to the center of this page。/p
/body
/html
HTML样式:好看的彩色字体有方法
HTML样式实例-合成
Html
菩提
h1style=' background-color : yellow;text-align : center ' this is a heading/h 1
h2style=' background-color : red;text-align : center ' this is a heading/h 2
p style=' background-color : green;text-align : center ' this is a paragraph。/p
H1型式=' font-族群3360 verdana文字-align :中心' a heading/h1
p style=' font-family : arial;文本-align :中心:Color:redfont-size :20 px;'是A paragraph。/p
/body
/html
HTML样式:好看的彩色字体有方法