I was reading the code in the official demo page for slider: http://jqueryui.com/demos/slider/ and I was wondering why an <a>
tag is used for handle? Why not a <div>
?
<div class="demo">
<div id="slider" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
<a class="ui-slider-handle ui-state-default ui-corner-all ui-state-hover" href="#" style="left: 19%; ">
</a>
</div>
</div>
<a>
. but<div>
is a block element, which doesn't suit here. – Bronwynposition:absolute
it is hasdisplay:block
– Strawn