Quiz for:
Notes sur HTML, CSS et JavaScript

Question 1

What is the correct syntax to change a `<h2>` element to have red text using CSS?

Question 2

What HTML event attribute is used to change an element’s style using JavaScript?

Question 3

What is the purpose of CSS in a web page?

Question 4

Which JavaScript method is used to select an HTML element by its ID?

Question 5

In the provided HTML code, what will the button with `onClick="couleur('red')"` do?

Question 6

To make an `<h2>` element red using CSS, the correct rule is:

Question 7

Which HTML tag is used to denote a paragraph?

Question 8

What is the main role of JavaScript in web development?

Question 9

What is one benefit of separating HTML, CSS, and JavaScript in web development?

Question 10

In JavaScript, which property is used to change the color of an element?

Question 11

Which HTML attribute is used to execute a JavaScript function when an element is clicked?

Question 12

Which of the following is NOT an element that can be styled using CSS?

Question 13

Which JavaScript function is demonstrated to change the color of text when a button is clicked?

Question 14

How would you call a JavaScript function named 'showAlert' when a button is clicked in HTML?

Question 15

What does the following CSS rule do? ```css p { color: green; } ```