Java & JavaScript Styles Quiz Test Your Java & JavaScript Skills: Beginner’s Quiz 1 / 5 Which language is mainly used to style web pages? JavaScript Java SQL CSS 2 / 5 Which JavaScript command can change the background color of a webpage element? document.style.background = “red” body.setColor(“red”) page.color = “red” element.style.backgroundColor = “red” 3 / 5 Which JavaScript property is used to change the color of an HTML element? element.style.color element.body.color element.font.color element.text.style 4 / 5 4. Which of the following is a good Java coding style practice? Write all code in one line Avoid indentation Use clear variable names Use random symbols in names 5 / 5 What does JavaScript often do with styles on a webpage? It can only compile Java code It can only create images It can only create databases It can change styles dynamically Your score isThe average score is 20% 0% Restart quiz Send feedback