web dev on click function code example
Example 1: does click event work only for buttons
<button>
<svg>
<use xlink:href="#gear"></use>
</svg>
</button>
Example 2: does click event work only for buttons
button > * {
pointer-events: none;
}