With some attributes: <div id="test"> foo </div> <div id="test" class="nono"> foo </div> Hr's: <hr class="foo" id="bar" >