• 2022-10-27
    CSS样式代码如下所示,则选项( )能够实现在页面中将“文本”两个字显示为红色<style type="text/css"> #h1 { color:red; } .title { color:red; }</style>。
    A: <p class="title">文本</p>
    B: <h1>文本</h1>
    C: <h1 id="title">文本</h1>
    D: <p name="h1">文本</p>
  • 举一反三