下在代码使用HTML元素的ID属性,将样式应用于网页上的某个段落∶<Pid=firstp>这是一个段落</>,下面选项中,正确定义了上面代码引用的样式规则的是;()

A.<StyleType=text/cs>P{color:red}</Style>; B.<StyleType=text/css><firstp{colorred}</Style>; C.<StyleType=text/css>.firstp{color:red}</Style>; D.<StyleType=text/css>P.firstp{color:red}</Style>;

时间:2023-06-29 08:01:04

相似题目