关于HTML中字体样式和颜色设置

<html><body style="background-color:PowderBlue;"><h1>Look! Styles and colors</h1><p style="font-family:verdana;color:red">This text is in Verdana and red</p><p style="font-family:times;color:green">This text is in Times and green</p><p style="font-size:30px">This text is 30 pixels high</p></body></html>谁能给我详细解释下具体意义

具体意义如下:

<html>    //html标志

<body style="background-color:PowderBlue;">   主体样式 ——背景颜色

owderBlue<h1>Look! Styles and colors</h1>   标题默认H1<p style="font-family:verdana;color:red">  段落样式——字体:verdana;颜色:红

This text is in Verdana and red</p>  段落内容<p style="font-family:times;color:green">  段落样式——字体:times;颜色:绿

This text is in Times and green</p> 段落内容<p style="font-size:30px">This text is 30 pixels high</p>  段落样式——字体大小:30%</body>  主体结束

</html>  HTML结束

拓展资料:

超文本标记语言,标准通用标记语言下的一个应用。 “超文本”就是指页面内可以包含图片、链接,甚至音乐、程序等非文字元素。 超文本标记语言的结构包括“头”部分(英语:Head)、和“主体”部分(英语:Body),其中“头”部提供关于网页的信息,“主体”部分提供网页的具体内容。

HTML之所以称为超文本标记语言,是因为文本中包含了所谓“超级链接”点------就是一种URL指针,通过激活(点击)它,可使浏览器方便地获取新的网页。这也是HTML获得广泛应用的最重要的原因之一。

由此可见,网页的本质就是HTML,通过结合使用其他的Web技术(如:脚本语言、CGI、组件等),可以创造出功能强大的网页。因而,HTML是Web编程的基础,也就是说万维网是建立在超文本基础之上的。

温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-07-26
<html></htm>告诉浏览器中间的是网页内容,标签本身无实质意义.
<body style="background-color:PowderBlue;"></body>是网页内容部分.style="background-color:PowderBlue;",设置网页的背景色为PowderBlue(粉末蓝?)
<h1></h1>中间的内容显示为一级标题的样式.
<p></p>表示中间的内容是一个段落.style="font-family:verdana;color:red",设置段落的字体为verdana,颜色是red红色;下面的<p style="font-family:times;color:green"></p>同理,字体为times,绿色.<p style="font-size:30px"></p>设置段落字体大小为30px(像素).
够详细了吧
第2个回答  2018-05-19
<html> //html标志
<body style="background-color:PowderBlue;"> 主体样式 --背景颜色:PowderBlue<h1>Look! Styles and colors</h1> 标题默认H1<p style="font-family:verdana;color:red"> 段落样式--字体:verdana;颜色:红
This text is in Verdana and red</p> 段落内容<p style="font-family:times;color:green"> 段落样式--字体:times;颜色:绿
This text is in Times and green</p> 段落内容<p style="font-size:30px">This text is 30 pixels high</p> 段落样式--字体大小:30%</body> 主体结束
</html> HTML结束本回答被网友采纳
第3个回答  2011-07-26
background-color 背景颜色
font-family 字体
color 字色
font-size 字号本回答被提问者和网友采纳
第4个回答  2011-07-26
background-color:-----》是“背景颜色”的意思;color:-----》是“颜色”的意思;
相似回答