HTML MCQ Quiz - Objective Question with Answer for HTML - Download Free PDF

Last updated on Nov 6, 2023

Latest HTML MCQ Objective Questions

HTML Question 1:

HTML is a link created within which of the following?

  1. Web links
  2. Data
  3. Web page
  4. Internet
  5. None of the above

Answer (Detailed Solution Below)

Option 3 : Web page

HTML Question 2:

Which of the following is NOT a pair tag in HTML?

  1. </li><li class="option">None of the above/More than one of the above</li></ol></div></div><div class="card answer-card"><h4 class="underline tag-h2">Answer <span class="text-light">(Detailed Solution Below)</span></h4> <div>Option 1 : <img></div> </div><div class="card solution-card"> <div class="card__header underline"> <h4>HTML Question 2 Detailed Solution</h4> </div> <div class="solution"> <p><img> tag</p> <p>It is used to embed an image on an HTML page. The <img> tag has two required attributes:</p> <p>src - Specifies the path to the image<br /> alt - Specifies an alternate text for the image, if the image for some reason cannot be displayed<br /> Syntax</p> <p><img src="https://testbook.com/objective-questions/Image-path" alt="Image name " width=”" height=""></p> <p>Example</p> <p><img src="https://testbook.com/objective-questions/img.jpg" alt="Image-description" width="500" height="600"></p> <p><i> tag</p> <p>The content inside is typically displayed in italic.</p> <p><p> tag</p> <p>It defines a paragraph. Browsers automatically add a single blank line before and after each <p> element.</p> <p>Example:</p> <p><p>This is some text in a paragraph. </p></p> <p><title> tag</p> <p>It defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab. It cannot have more than one <title> element in an HTML document.</p> <div class="buttons-container"></div> </div> </div><div class="signup-banner"> <div class="sub-heading"> India’s <strong>#1 Learning</strong> Platform </div> <div class="main-heading"> Start Complete Exam Preparation </div><div class="features-container"> <div class="feature"> <div class="feature-icon"><img src="https://cdn.testbook.com/qb_resources/daily-live-master-classes.svg" alt="Live Masterclass" width="25" height="25"></div> <div class="feature-detail">Daily Live MasterClasses</div> </div> <div class="feature"> <div class="feature-icon"><img src="https://cdn.testbook.com/qb_resources/practice-question-bank.svg" alt="Practice Question Bank" width="25" height="25"></div> <div class="feature-detail">Practice Question Bank</div> </div> <div class="feature"> <div class="feature-icon"><img src="https://cdn.testbook.com/qb_resources/mock-tests-quizzes.svg" alt="Mock Tests & Quizzes" width="25" height="25"></div> <div class="feature-detail">Mock Tests & Quizzes</div> </div> </div><div class="buttons-container pure-u-1 pure-u-md-4-5 pure-u-lg-3-5"> <a target="_blank" class="pure-button pure-button-success" href="https://testbook.com/login?tile=signup&headerText=Sign%20Up%20To%20Get%20Free%20Solution%20PDF&utm_source=QuestionBank&utm_medium=QuestionBankRecommendation&referrer=QnA&referrerType=QnA">Get Started for Free</a> <a target="_blank" class=" download-app-btn" href="https://link.testbook.com/XVertTSUigb"> <svg id="livetype" xmlns="http://www.w3.org/2000/svg" width="119.66407" height="40" viewBox="0 0 119.66407 40"> <title>Download_on_the_App_Store_Badge_US-UK_RGB_blk_4SVG_092917
Trusted by 4.9 Crore+ Students

HTML Question 3:

How are the webpages linked to each other?

  1. Edges
  2. Hyperlinks
  3. Links
  4. Wi-Fi

Answer (Detailed Solution Below)

Option 2 : Hyperlinks

HTML Question 3 Detailed Solution

hyperlink is an element in an HTML document that links to either another portion of the document or to another document altogether. On web pages, hyperlinks are usually colored purple or blue and are sometimes underlined.

  • A hyperlink can be thought of as an interface that links a source to a target. Clicking the hyperlink at the source will navigate to the target. Hyperlinks can assume any of the following appearances:
  1. Text
  2. Images
  3. URLs
  4. Controls (for example, a button)
  • The a href=" "  tag defines a hyperlink, which is used to link from one page to another.
  • The most important attribute of the a href=" "  element is the href attribute, which indicates the link's destination.
  • By default, links will appear as follows in all browsers:
  1. An unvisited link is underlined and blue
  2. A visited link is underlined and purple
  3. An active link is underlined and red

HTML Question 4:

Html document must always be saved with which of the following?

  1. .html
  2. .htm
  3. .doc
  4. both .html and .htm

Answer (Detailed Solution Below)

Option 4 : both .html and .htm

HTML Question 4 Detailed Solution

The correct option is (4)

both .html and .htm

Key Points

  • Although HTML files are simply plain ASCII text, they all need to have a specific file extension in order for web browsers to recognize them. It ends with either.htm or.html.
  • Based on a file containing hypertext markup language, an HTML document is created. In HTML, tags, or hidden keywords, specify how text should be shown to processing programs, frequently Web browsers.
  • Typically, an HTML document is composed of two parts: The HTML document's HEAD section contains descriptive information. Everything you want to appear on the Web page is in the BODY section.
  • The building blocks of web pages, HTML, are used to make websites and web applications.
  • An HTML 4.0 document typically consists of three sections: a line with version information, a header section that describes the document's content, and a body.
  • Text, the words you want to appear on your page, and embedded instructions known as HTML tags make up an HTML file.

HTML Question 5:

Which of the following is NOT a pair tag in HTML?

  1. </li></ol></div></div><div class="card answer-card"><h4 class="underline tag-h2">Answer <span class="text-light">(Detailed Solution Below)</span></h4> <div>Option 1 : <img></div> </div><div class="card solution-card"> <div class="card__header underline"> <h4>HTML Question 5 Detailed Solution</h4> </div> <div class="solution"> <p><img> tag</p> <p>It is used to embed an image on an HTML page. The <img> tag has two required attributes:</p> <p>src - Specifies the path to the image<br /> alt - Specifies an alternate text for the image, if the image for some reason cannot be displayed<br /> Syntax</p> <p><img src="https://testbook.com/objective-questions/Image-path" alt="Image name " width=”" height=""></p> <p>Example</p> <p><img src="https://testbook.com/objective-questions/img.jpg" alt="Image-description" width="500" height="600"></p> <p><i> tag</p> <p>The content inside is typically displayed in italic.</p> <p><p> tag</p> <p>It defines a paragraph. Browsers automatically add a single blank line before and after each <p> element.</p> <p>Example:</p> <p><p>This is some text in a paragraph. </p></p> <p><title> tag</p> <p>It defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab. It cannot have more than one <title> element in an HTML document.</p> <div class="buttons-container"></div> </div> </div><div class="signup-banner"> <div class="sub-heading"> India’s <strong>#1 Learning</strong> Platform </div> <div class="main-heading"> Start Complete Exam Preparation </div><div class="features-container"> <div class="feature"> <div class="feature-icon"><img src="https://cdn.testbook.com/qb_resources/daily-live-master-classes.svg" alt="Live Masterclass" width="25" height="25"></div> <div class="feature-detail">Daily Live MasterClasses</div> </div> <div class="feature"> <div class="feature-icon"><img src="https://cdn.testbook.com/qb_resources/practice-question-bank.svg" alt="Practice Question Bank" width="25" height="25"></div> <div class="feature-detail">Practice Question Bank</div> </div> <div class="feature"> <div class="feature-icon"><img src="https://cdn.testbook.com/qb_resources/mock-tests-quizzes.svg" alt="Mock Tests & Quizzes" width="25" height="25"></div> <div class="feature-detail">Mock Tests & Quizzes</div> </div> </div><div class="buttons-container pure-u-1 pure-u-md-4-5 pure-u-lg-3-5"> <a target="_blank" class="pure-button pure-button-success" href="https://testbook.com/login?tile=signup&headerText=Sign%20Up%20To%20Get%20Free%20Solution%20PDF&utm_source=QuestionBank&utm_medium=QuestionBankRecommendation&referrer=QnA&referrerType=QnA">Get Started for Free</a> <a target="_blank" class=" download-app-btn" href="https://link.testbook.com/XVertTSUigb"> <svg id="livetype" xmlns="http://www.w3.org/2000/svg" width="119.66407" height="40" viewBox="0 0 119.66407 40"> <title>Download_on_the_App_Store_Badge_US-UK_RGB_blk_4SVG_092917
Trusted by 4.9 Crore+ Students

Top HTML MCQ Objective Questions

Which among the following is not an HTML tag?