Skip to content

Commit c18b4d6

Browse files
committed
Write a JavaScript script that updates the text color of the <header> element to red (#FF0000)
1 parent 5b08a40 commit c18b4d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
document.addEventListener('DOMContentLoaded', function () {
2+
document.querySelector('HEADER').style.color = '#FF0000';
3+
});

0 commit comments

Comments
 (0)