[go: up one dir, main page]

0% found this document useful (0 votes)
4 views5 pages

Chapter 3

The document contains a series of multiple-choice questions (MCQs) related to HTML, covering topics such as tags, attributes, and their purposes. Each question is followed by four answer options, with the correct answer indicated. The MCQs serve as a quiz or educational tool for understanding HTML basics.

Uploaded by

ravi500shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Chapter 3

The document contains a series of multiple-choice questions (MCQs) related to HTML, covering topics such as tags, attributes, and their purposes. Each question is followed by four answer options, with the correct answer indicated. The MCQs serve as a quiz or educational tool for understanding HTML basics.

Uploaded by

ravi500shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

MCQ 1:

Question: What does HTML stand for?

A) HyperText Markup Language


B) HighText Machine Language
C) Hyperlink Text Management Language
D) Home Tool Markup Language
Answer: A) HyperText Markup Language

MCQ 2:
Question: Which HTML tag is used to create a heading?

A) <p>
B) <h1>
C) <div>
D) <span>
Answer: B) <h1>

MCQ 3:
Question: What is the purpose of the <hr> tag in HTML?

A) To create a hyperlink
B) To insert a horizontal line
C) To format text
D) To create a table
Answer: B) To insert a horizontal line

MCQ 4:
Question: How do you display text in bold in HTML?

A) <i>
B) <b>
C) <u>
D) <strong>
Answer: B) <b>

MCQ 5:
Question: Which tag is used to create a paragraph in HTML?

A)
B) <p>
C) <h2>
D) <blockquote>
Answer: B) <p>

MCQ 6:
Question: What is the purpose of the <img> tag in HTML?

A) To insert an image
B) To create a hyperlink
C) To format text
D) To create a table
Answer: A) To insert an image

MCQ 7:
Question: Which attribute of the <img> tag is used to provide alternate text for an
image?

A) src
B) alt
C) title
D) width
Answer: B) alt

MCQ 8:
Question: How do you create a hyperlink in HTML?

A) <a href="url">Link Text</a>


B) <link href="url">Link Text</link>
C) <url>Link Text</url>
D) <href>Link Text</href>
Answer: A) <a href="url">Link Text</a>

MCQ 9:
Question: What is the purpose of the <table> tag in HTML?

A) To create a list
B) To insert an image
C) To create a table
D) To format text
Answer: C) To create a table

MCQ 10:
Question: Which tag is used to define the table header in HTML?

A) <th>
B) <tr>
C) <td>
D) <thead>
Answer: A) <th>

MCQ 11:
Question: How do you create a line break in HTML?

A)
B) <lb>
C) <p>
D) <hr>
Answer: A)

MCQ 12:
Question: Which attribute is used to specify the style of an HTML element?

A) class
B) style
C) id
D) type
Answer: B) style

MCQ 13:
Question: What is the purpose of the <form> tag in HTML?

A) To create a table
B) To create a form for user input
C) To insert an image
D) To format text
Answer: B) To create a form for user input
MCQ 14:
Question: Which input type is used to create a text input field in a form?

A) <input type="text">
B) <input type="button">
C) <input type="checkbox">
D) <input type="radio">
Answer: A) <input type="text">

MCQ 15:
Question: How do you create a submit button in an HTML form?

A) <button type="submit">Submit</button>
B) <input type="submit">
C) <input type="button">
D) <button type="button">Submit</button>
Answer: B) <input type="submit">

MCQ 16:
Question: What is the purpose of the <label> tag in HTML?

A) To create a hyperlink
B) To define a label for an <input> element
C) To insert an image
D) To create a table
Answer: B) To define a label for an <input> element

MCQ 17:
Question: Which tag is used to create an unordered list in HTML?

A) <ol>
B) <ul>
C) <li>
D) <dl>
Answer: B) <ul>

MCQ 18:
Question: How do you create an ordered list in HTML?

A) <ol>
B) <ul>
C) <li>
D) <dl>
Answer: A) <ol>

MCQ 19:
Question: Which tag is used to define a list item in HTML?

A) <ol>
B) <ul>
C) <li>
D) <dl>
Answer: C) <li>

MCQ 20:
Question: What is the purpose of the <div> tag in HTML?

A) To create a division or section in an HTML document


B) To insert an image
C) To create a table
D) To format text
Answer: A) To create a division or section in an HTML document

MCQ 21:
Question: Which attribute is used to link an external CSS file in HTML?

A) href
B) src
C) rel
D) type
Answer: A) href

MCQ 22:
Question: What is the purpose of the <span> tag in HTML?

A) To create a section in a document


B) To group inline elements
C) To insert an image
D) To create a table
Answer: B) To group inline elements

MCQ 23:
Question: How do you create a comment in HTML?

A) <!-- This is a comment -->


B) <comment>This is a comment</comment>
C) /* This is a comment */
D) // This is a comment
Answer: A) <!-- This is a comment -->

MCQ 24:
Question: Which tag is used to embed a video in HTML?

A) <video>
B) <audio>
C) <embed>
D) <source>
Answer: A) <video>

MCQ 25:
Question: What is the purpose of the <audio> tag in HTML?

A) To embed audio content


B) To create a hyperlink
C) To insert an image
D) To create a table
Answer: A) To embed audio content

MCQ 26:
Question: Which attribute is used to specify the source file for a video in HTML?

A) src
B) href
C) type
D) alt
Answer: A) src
MCQ 27:
Question: How do you create a dropdown list in an HTML form?

A) <select>
B) <option>
C) <input type="dropdown">
D) <dropdown>
Answer: A) <select>

MCQ 28:
Question: Which tag is used to define the options in a dropdown list?

A) <select>
B) <option>
C) <input>
D) <dropdown>
Answer: B) <option>

MCQ 29:
Question: What is the purpose of the <nav> tag in HTML?

A) To define a section of navigation links


B) To insert an image
C) To create a table
D) To format text
Answer: A) To define a section of navigation links

MCQ 30:
Question: Which attribute is used to specify the character encoding for an HTML
document?

A) charset
B) encoding
C) language
D) type
Answer: A) charset

You might also like