Zaloguj sięZarejestruj się

Która z instrukcji języka JavaScript dokona zmiany koloru tekstu na niebieski w akapicie zdefiniowanym w dokumencie HTML?

ID pytania: 937
question image

document.getElementById("jeden").style.color = "blue";

document.getElementById("jeden").style.background-color = "blue";

document.getElementById("jeden").color = "blue";

document.getElementById("jeden").background-color = "blue";