6、下面代码使用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"> p.firstp {color:red} </style>