HTML, CSS, and JavaScript Test
Instructions: Choose the best answer for each question.
I. Which attribute is used to define inline styles in HTML elements?
II. Which tag is used to create a dropdown list in HTML forms?
III. Which HTML5 element is used to represent self-contained content that could be independently distributed or reused?
IV. What is the purpose of the `<form>` tag in HTML?
V. Which attribute is used to make an HTML element non-editable?
VI. Which HTML tag is used to embed a video file?
VII. What is the purpose of the `colspan` attribute in a `<table>`?
VIII. Which tag is used to define a section in a document, such as headers, footers, navigation, etc.?
IX. Which of the following is NOT a valid input type in HTML5 forms?
X. Which attribute is used to define the character encoding for the HTML document?
XI. How do you select all `<p>` elements inside a `<div>` element in CSS?
XII. Which CSS property is used to control the order of flex items within a flex container?
XIII. Which CSS property is used to add shadows to elements?
XIV. Which CSS property is used to set the stacking order of elements?
XV. Which CSS selector is used to select all even table rows?
XVI. Which CSS property is used to make text italic?
XVII. Which CSS property is used to control the visibility of an element, including its space?
XVIII. What is the CSS property to align items along the main axis in a Flexbox container?
XIX. Which CSS pseudo-class is used to define the style of a link in its normal, unvisited state?
XX. Which CSS property is used to set the space between words in a text?
XXI. What will `typeof NaN` return in JavaScript?
XXII. Which method is used to add new elements to the *end* of an array in JavaScript?
XXIII. What is the purpose of the `addEventListener()` method in JavaScript?
XXIV. What does the `===` operator do in JavaScript?
XXV. What is a 'closure' in JavaScript?
XXVI. Which method is used to convert a JavaScript object to a JSON string?
XXVII. What is the global object in JavaScript environments like browsers?
XXVIII. What is the purpose of the `try...catch` statement in JavaScript?
XXIX. What does the `map()` method do for arrays in JavaScript?
XXX. What is the output of `console.log(2 == '2')` in JavaScript?