here's how i create element
var a = document.createElement("a");
a.setAttribute("id","remove");
a.setAttribute("uk-icon","icon: trash");
when i inspect
i want to get a tag but it only gives icon
document.addEventListener('click', function(e){
console.log(e.target);
});
what is the correct way on creating element?

