HTML MCQ Quiz in मल्याळम - Objective Question with Answer for HTML - സൗജന്യ PDF ഡൗൺലോഡ് ചെയ്യുക
Last updated on Mar 7, 2025
Latest HTML MCQ Objective Questions
Top HTML MCQ Objective Questions
HTML Question 1:
_____ attribute is used to restart the numbering in an ordered list.
Answer (Detailed Solution Below)
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 | It defines a field for entering a number.Ex: |
HTML Question 2:
The web uses the _________ to request and serve web pages and programs.
Answer (Detailed Solution Below)
HTML Question 2 Detailed Solution
HTML Question 3:
Html document must always be saved with which of the following?
Answer (Detailed Solution Below)
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?
Answer (Detailed Solution Below)
HTML Question 4 Detailed Solution
tag
It is used to embed an image on an HTML page. The tag has two required attributes:
src - Specifies the path to the image
alt - Specifies an alternate text for the image, if the image for some reason cannot be displayed
Syntax
Example
tag
The content inside is typically displayed in italic.
tag
It defines a paragraph. Browsers automatically add a single blank line before and after each
element.
Example:
This is some text in a paragraph.
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
HTML Question 5:
In Visual basic, Which data type is can store the text of 10 Million characters
Answer (Detailed Solution Below)
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");
Answer (Detailed Solution Below)
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.
Answer (Detailed Solution Below)
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:
Xml version = “1.0”?>
….
….
HTML Question 8:
Which of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content?
Answer (Detailed Solution Below)
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?
Answer (Detailed Solution Below)
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.
Answer (Detailed Solution Below)
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.