下列代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id=”firstp”>这是一个段落</P>,下面选项中,()正确定义了上面代码引用的样式规则。
A. <Style Type=”text/css”> P {color:red} </Style>
B. <Style Type=”text/css”> #firstp {color:red} </Style>
C. <Style Type=”text/css”> .firstp {color:red} </Style>
D. <Style Type=”text/css”>
E. firstp {color:red} </Style>