Defina o valor de um atributo
Resumo : neste tutorial, você aprenderá como definir o valor de um atributo em um elemento DOM usando o setAttribute()método. Para definir o valor de um atributo em um elemento, você usa o setAttribute()método: element.setAttribute(name,value);Linguagem de código: CSS ( css…