在我的HTML中,我想知道是否可以像使用<h1>
一样使用唯一标识符,例如<toys>
。例如:
我想要:
<toys class="grid_4 push_2"> </toys>
使用以下CSS:
toys {
background: url("toys.png") no-repeat scroll 0 0 transparent;
width: 181px;
height: 93px;
margin-top: -8px;
}
我目前有:
<h1 class="grid_4 push_2"> </h1>
使用以下CSS:
h1.push_2 {
background: url("toys.png") no-repeat scroll 0 0 transparent;
width: 181px;
height: 93px;
margin-top: -8px;
}
使用类似于 <toys>
的唯一标识符是否在语义上是正确的?