Change HTML anchor ref to attributes element