What is JavaScript used for on websites? <<
( ) Defining the colors and font family of the text on the website {{Incorrect because CSS defines the font color and the font family of the text.}} ( ) Defining the text displayed on the website {{Incorrect because HTML defines the text displayed on the website.}} ( ) Defining buttons and their texture {{Incorrect because buttons are formatted using HTML and CSS.}} ( ) Defining hyperlinks for buttons and text {{Incorrect because text and buttons with hyperlink are created using HTML.}} (x) Defining dynamic behavior through functions {{Correct because JavaScript is used to define dynamic behavior such as user interaction.}}
||HTML defines website content while CSS defines the style for each HTML element. ||