0%

Which HTML tag is used to link an external CSS file to an HTML document?

Correct! Wrong!

The link tag is used in HTML to link an external CSS file to the HTML document. It is typically placed inside the head section of the HTML.

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

Correct! Wrong!

The document.getElementById() method in JavaScript is used to select an element by its ID. It returns the first element that matches the provided ID.

Which CSS property is used to change the font size of text?

Correct! Wrong!

The font-size property in CSS is used to set the size of the font used for text. It can be specified in various units like pixels (px), em, rem, or percentages.

Which HTML element is used to create an ordered list?

Correct! Wrong!

The ol tag is used to create an ordered list in HTML, where the list items are automatically numbered. The ul tag is used for an unordered (bulleted) list, and li is used for each list item.

Which of the following is used in JavaScript to handle asynchronous operations?

Correct! Wrong!

In JavaScript, async and await are used to handle asynchronous operations in a more readable and manageable way. async makes a function return a promise, and await is used to pause the execution of the function until the promise is resolved.