HTML MCQ Quiz in मराठी - Objective Question with Answer for HTML - मोफत PDF डाउनलोड करा

Last updated on Mar 7, 2025

पाईये HTML उत्तरे आणि तपशीलवार उपायांसह एकाधिक निवड प्रश्न (MCQ क्विझ). हे मोफत डाउनलोड करा HTML एमसीक्यू क्विझ पीडीएफ आणि बँकिंग, एसएससी, रेल्वे, यूपीएससी, स्टेट पीएससी यासारख्या तुमच्या आगामी परीक्षांची तयारी करा.

Latest HTML MCQ Objective Questions

Top HTML MCQ Objective Questions

HTML Question 1:

_____ attribute is used to restart the numbering in an ordered list.

  1. Type
  2. Order
  3. Start
  4. Number

Answer (Detailed Solution Below)

Option 3 : Start

HTML Question 1 Detailed Solution

Type The type attribute specifies the type of element.For Ex:For button elements, the type attribute specifies the type of button as  <button type="submit" value="Submit">Submit</button>
Order

The order property specifies the order of a flexible item relative to the rest of the flexible items inside the same container..Ex:document.getElementById("myRedDIV").style.order = "4";

Start The start attribute specifies the start value of the first list item in an ordered list.Ex:
    number">
Number It defines a field for entering a number.Ex:

HTML Question 2:

The web uses the _________ to request and serve web pages and programs.

  1. Hyper Text Marketing Language
  2. Hyper Text Markup Language
  3. Hotmail Text Markup Language
  4. Home Text Markup Language

Answer (Detailed Solution Below)

Option 2 : Hyper Text Markup Language

HTML Question 2 Detailed Solution

Hypertext Markup Language is the standard markup language for creating web pages and web applications. With Cascading Style Sheets and JavaScript it forms a triad of cornerstone technologies for the World Wide Web.

HTML Question 3:

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 3 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 4:

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 4 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="Image-path " alt="Image name " width=”" height=""></p> <p>Example</p> <p><img src="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="/" 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="/" 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="/" 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="/testbookcom/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="/"> <svg id="livetype" xmlns="/" width="119.66407" height="40" viewBox="0 0 119.66407 40"> <title>Download_on_the_App_Store_Badge_US-UK_RGB_blk_4SVG_092917 - www.guacandrollcantina.com
Trusted by 7.1 Crore+ Students

HTML Question 5:

In Visual basic, Which data type is can store the text of 10 Million characters

  1. Ulong
  2. int
  3. double
  4. string

Answer (Detailed Solution Below)

Option 4 : string

HTML Question 5 Detailed Solution

Answer: Option 4

Explanation:

Option 1: Ulong

this is not correct. since it can not store text data and it can store integer data data only from 0 to 18,446,744,073,709,551,615. it is 8 bytes in size.

Option 2: int

this is not correct. since it also can not store text data and It can store integer data only from  -2,147,483,648 to 2,147,483,647. It is 4 bytes in size.

Option 3: double

this is not correct. since it also can not store text data and it can store real numbers data only from -1.79769313486232e308 to 1.79769313486232e308. 

Option 4: string

this is a  correct answer. a string can store 0 to approximately 2 billion Unicode characters.

HTML Question 6:

What will be the output of the following script command?

document.write (2+5+"8");

  1. 258
  2. Error
  3. 78
  4. 7

Answer (Detailed Solution Below)

Option 3 : 78

HTML Question 6 Detailed Solution

The correct answer is option 3.

Key Points

 "+" operator is an arithmetic operator of integers and a concatenation operator along with string ("8").

The expression 2+5+"8' gives 78.

∴ Hence the correct answer is 78.

HTML Question 7:

An XML document can have a DTD declaration by using the _______ keyword.

  1. DTD
  2. DOCUMENT
  3. DESIGN
  4. DOCTYPE

Answer (Detailed Solution Below)

Option 4 : DOCTYPE

HTML Question 7 Detailed Solution

Concept:

DTD (Document type definition) defines the structure and attributes, elements for an XML document.

Explanation:

DTD is a set of rules defined for XML documents. It defines all the attributes of an XML documents. It defines the order in which elements and attributes can occur. It defines all the entities used and defines the document type.

DTD can be stores in a XML document or in a separate file. An XML document can have DTD declaration by using the DOCTYPE keyword.

]>

There are two type of declaration possible of DTD:

1) Internal DTD declaration: In tis, DTD is declared in the same file as XML. Syntax for this is shown here as:

]>

2) External DTD: in this, DTD declaration is in a separate file. Suppose DTD declaration is in file sample.dtd. Then syntax will be:

….

….

HTML Question 8:

Which of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content?

  1. < td halign = " middle" valign = " center" > BASH < / td >
  2. < td style = " text − align : center; vertical − align : middle; " > BASH < / td >
  3. < td align = "middle" valign = " center" > BASH < / td >
  4. < td style = " horizontal − align: center; vertical − align : middle; " > BASH < / td >

Answer (Detailed Solution Below)

Option 2 : < td style = " text − align : center; vertical − align : middle; " > BASH < / td >

HTML Question 8 Detailed Solution

< td style = " text − align : center; vertical − align : middle; " > BASH < / td >

The above code of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content because:

  • The text-align-align property determines the horizontal alignment of the content in or, such as left, right, or center.
  • The vertical-align-align attribute determines the vertical alignment (such as top, bottom, or center) of the content in or.

HTML Question 9:

Which of the following is not an attribute of the


element?

  1. SIZE
  2. ALIGN
  3. COLOUR
  4. NOSHADE

Answer (Detailed Solution Below)

Option 3 : COLOUR

HTML Question 9 Detailed Solution

Concept:

The


tag is used to inject a horizontal rule or a thematic break into an HTML page in order to split or separate document sections. The
tag is empty and does not require a end tag.

Explanation:

Following describe the


tag attribute:

  • ALIGN specifies the alignment of the horizontal rule.
  • NOSHADE removes the usual shading effect that most browsers display.
  • SIZE specifies the height of the horizontal rule.
  • WIDTH specifies the width of the horizontal rule.
  • COLOR specify the color of the horizontal line. It can be specified using a color name, a hexadecimal value, or an RGB value.

Hence, the COLOUR is not an attribute of the


element.

HTML Question 10:

Which of the following statements is/are TRUE ?

(a) In HTML, character entities are used to incorporate external content into a web page, such as images.

(b) Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server.

  1. Only (a) is TRUE.
  2. Only (b) is TRUE.
  3. Both (a) and (b) are TRUE
  4. Neither (a) nor (b) is TRUE.

Answer (Detailed Solution Below)

Option 4 : Neither (a) nor (b) is TRUE.

HTML Question 10 Detailed Solution

The correct answer is option 4.

EXPLANATION

Statement I: False

Entities are used to display characters that have special HTML meanings, such as "<" and ">".

Statement II: False

Not every request sends the cookies. It depends on the cookie configuration and client-server connection. For example, if your cookie's secure option is set to true then it must be transmitted over a secure HTTPS connection. This means when you see that website with HTTP protocol then these cookies won't be sent by browsers as the secure flag is true.
If the cookie has been expired it will not send by browsers as the secure flag is true.

∴ Hence the correct answer is Neither (a) nor (b) is TRUE.

Hot Links: teen patti master 2025 teen patti customer care number teen patti royal teen patti star apk teen patti vungo