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