Software Development Exam  >  Software Development Tests  >  Test: HTML - 2 - Software Development MCQ

Test: HTML - 2 - Software Development MCQ


Test Description

15 Questions MCQ Test - Test: HTML - 2

Test: HTML - 2 for Software Development 2024 is part of Software Development preparation. The Test: HTML - 2 questions and answers have been prepared according to the Software Development exam syllabus.The Test: HTML - 2 MCQs are made for Software Development 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: HTML - 2 below.
Solutions of Test: HTML - 2 questions in English are available as part of our course for Software Development & Test: HTML - 2 solutions in Hindi for Software Development course. Download more important topics, notes, lectures and mock test series for Software Development Exam by signing up for free. Attempt Test: HTML - 2 | 15 questions in 30 minutes | Mock test for Software Development preparation | Free important questions MCQ to study for Software Development Exam | Download free PDF with solutions
Test: HTML - 2 - Question 1

What does the target attribute in an <a> tag do?

Detailed Solution for Test: HTML - 2 - Question 1

The "target" attribute in an <a> tag is used to specify where to open the linked document, such as in a new tab or window.

Test: HTML - 2 - Question 2

Which tag is used to create a definition list in HTML?

Detailed Solution for Test: HTML - 2 - Question 2

The <dl> tag is used to create a definition list in HTML.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: HTML - 2 - Question 3

Which of the following tags is used to define the header of an HTML document?

Detailed Solution for Test: HTML - 2 - Question 3

The <head> tag is used to define the head section of an HTML document, which contains metadata and other information about the document.

Test: HTML - 2 - Question 4

Which attribute is used to specify the URL of an external stylesheet file in HTML?

Detailed Solution for Test: HTML - 2 - Question 4

The href attribute is used to specify the URL of an external stylesheet file in HTML.

Test: HTML - 2 - Question 5

Which HTML tag is used to create a hyperlink?

Detailed Solution for Test: HTML - 2 - Question 5

The <a> tag is used to create a hyperlink in HTML.

Test: HTML - 2 - Question 6

What is the correct HTML syntax for inserting an image?

Detailed Solution for Test: HTML - 2 - Question 6

The <img> tag is used to insert an image in HTML, and the src attribute specifies the URL of the image file.

Test: HTML - 2 - Question 7

How can you open a link in a new tab or window when clicked?

Detailed Solution for Test: HTML - 2 - Question 7

The target="_blank" attribute is used to open a link in a new tab or window when clicked.

Test: HTML - 2 - Question 8

What does the <br> tag represent in HTML?

Detailed Solution for Test: HTML - 2 - Question 8

The <br> tag represents a line break in HTML.

Test: HTML - 2 - Question 9

Which HTML tag is used to define a table?

Detailed Solution for Test: HTML - 2 - Question 9

The <table> tag is used to define a table in HTML.

Test: HTML - 2 - Question 10

Which attribute is used to specify the size of an input field in HTML?

Detailed Solution for Test: HTML - 2 - Question 10

The size attribute is used to specify the size of an input field in HTML.

Test: HTML - 2 - Question 11

What is the correct way to create a checkbox in HTML?

Detailed Solution for Test: HTML - 2 - Question 11

The <input> tag with the type attribute set to "checkbox" is used to create a checkbox in HTML.

Test: HTML - 2 - Question 12

What is the purpose of the alt attribute in the <img> tag?

Detailed Solution for Test: HTML - 2 - Question 12

The alt attribute in the <img> tag is used to provide alternative text for the image, which is displayed if the image fails to load or for accessibility purposes.

Test: HTML - 2 - Question 13

What is the purpose of the <meta> tag in HTML?

Detailed Solution for Test: HTML - 2 - Question 13

The <meta> tag is used to specify metadata about an HTML document, including the character encoding.

Test: HTML - 2 - Question 14

Which of the following is an example of an inline CSS style?

Detailed Solution for Test: HTML - 2 - Question 14

Inline CSS styles are defined using the <style> tag with the type attribute set to "text/css".

Test: HTML - 2 - Question 15

<!DOCTYPE html>
<html>
<body>

<h1 id="title">Welcome to my website!</h1>

<script>
document.getElementById("title").style.color = "red";
</script>

</body>
</html>

What is the purpose of the above HTML code?

Detailed Solution for Test: HTML - 2 - Question 15

The JavaScript code document.getElementById("title").style.color = "red"; selects the element with the ID "title" and changes its text color to red.

Information about Test: HTML - 2 Page
In this test you can find the Exam questions for Test: HTML - 2 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: HTML - 2, EduRev gives you an ample number of Online tests for practice

Top Courses for Software Development

Download as PDF

Top Courses for Software Development