position-visibility-anchors-valid-ref.html (278B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <style> 4 .anchor { 5 width: 100px; 6 height: 100px; 7 background: orange; 8 } 9 .target { 10 width: 100px; 11 height: 100px; 12 background: green; 13 } 14 </style> 15 16 <div class="anchor">anchor1</div> 17 <div class="target">target1</div>