EduCoder-Web程序设计基础-html5— CSS3选择器-基础选择器-第3关:标签选择器

任务描述

本关任务:使用标签选择器设置文字样式。

编程要求

请在右侧编辑器的Begin - End区域内使用标签stong选择器对文本进行样式设置,具体要求是:
1.先将文本字号大小值设置为100px
2.再将文本颜色属性值设置为#D33E2A。

测试说明

补充代码后,请点击测评,平台会对你编写的代码进行测试,如果正确则完成闯关任务。

越努力越幸运,祝你成功!

代码示例

<!DOCTYPE html>
<html>
<head>
 	<meta charset="utf-8"/>
   <style type="test/css">
   <!--------- Begin-------->
  .strong {
      
      
  font-size:100px;
  color:#D33E2A;
  }
   <!--------- End-------->
   </style>
</head>
<body>
<strong class="strong">G</strong>
<strong class="strong">o</strong>
<strong class="strong">o</strong>
<strong class="strong">g</strong>
<strong class="strong">l</strong>
<strong class="strong">e</strong>
</body>
</html>

Supongo que te gusta

Origin blog.csdn.net/weixin_51402180/article/details/121850888
Recomendado
Clasificación