What is the best way to make buttons(javascript) like this and what is the correct tag? "a", "b" or any other tag ?
Example - http://jsfiddle.net/S7FPH/
or
<html>
<head>
<style type="text/css">
a.a_button, b.b_button {
margin: 10px;
background-color: green;
width: 100px; height: 20px;
text-align: center;
display: block;
color: yellow;
}
a.a_button {text-decoration: none;}
b.b_button{
cursor: pointer;
font-weight: 100;
}
</style>
<script type="text/javascript">
function test(){
alert("test");
}
</script>
</head>
<body>
<a class="a_button" href="" onclick="test(); return false;">click</a>
<b class="b_button" onclick="test();">click</b>
</body>
</html>
UPDATE:
People asked it depends on how i want to use it, so here is an example.
about "button" tag - is thear is a way to make "button" tag look similar to my example(design) ? about "ul" - i like it but i dunno how to position it this way.