Html MCQ For Freshers & Experienced

  • Question 1) Which attribute specifies a unique alphanumeric identifier to be associated with an element?
  • Question 2) Which attribute is used to provide an advisory text about an element or its contents?
  • Question 3) The attribute of <form> tag
  • Question 4) Which of the following attributes of text box control allow to limit the maximum character?
  • Question 5) Web pages starts with which ofthe following tag?
  • Question 6) HTML is a subset of
  • Question 7) Character encoding is _____
  • Question 8) Correct HTML to left align the content inside a table cell is
  • Question 9) Which of the following is the attribute that indicates the name of the data source object that supplies the data that is bound to this element?
  • Question 10) Which of the following is the attribute that is used to add a name/value pair to a microdata item?
  • Question 11) <a> and </a> are the tags used for
  • Question 12) Choose the correct HTML tag to make a text italic
  • Question 13) Which program do you need to write HTML ?
  • Sharad Jaiswal
  • 27th Feb, 2020
  • 386 Followers

Html MCQ
Updated ON

27th Feb, 2020

No. of Questions

30

Posted In

MCQ

Author

Sharad Jaiswal

HTML Multiple choice interview questions (MCQ)

Q1. Which attribute specifies a unique alphanumeric identifier to be associated with an element?

  • class
  • id
  • article
  • html

Q2. Which attribute is used to provide an advisory text about an element or its contents?

  • tooltip
  • dir
  • title
  • head

Q3. The attribute of <form> tag

  • Method
  • Action
  • Both (a) & (b)
  • None of these
View Answer
Both (a) & (b)

Q4. Which of the following attributes of text box control allow to limit the maximum character?

  • size
  • len
  • maxlength
  • all of these
View Answer
maxlength

Q5. Web pages starts with which ofthe following tag?

  • <Body>
  • <Title>
  • <Html>
  • <Form>
View Answer
<Html>

Q6. HTML is a subset of

  • SGMT
  • SGML
  • SGMD
  • None of these

Q7. Character encoding is _____

  • method used to represent numbers in a character
  • method used to represent character in a number
  • a system that consists of a code which pairs each character with a pattern,sequence of natural numbers or electrical pulse in order to transmit the data
  • none of these
View Answer
a system that consists of a code which pairs each character with a pattern,sequence of natural numbers or electrical pulse in order to transmit the data

Q8. Correct HTML to left align the content inside a table cell is

  • <tdleft>
  • <td raligh = "left" >
  • <td align = "left">
  • <td leftalign>
View Answer
<td align = "left">

Q9. Which of the following is the attribute that indicates the name of the data source object that supplies the data that is bound to this element?

  • dataFormatAs
  • datafld
  • disabled
  • datasrc
View Answer
datasrc

Q10. Which of the following is the attribute that is used to add a name/value pair to a microdata item?

  • itemscope
  • itemref
  • itemprop
  • itemid
View Answer
itemprop

Q11. <a> and </a> are the tags used for

  • Adding image
  • Aligning text
  • Audio-voiced text
  • Adding links to your page
View Answer
Adding links to your page

Q12. Choose the correct HTML tag to make a text italic

  • <i>
  • <italic>
  • <it>
  • <il>

Q13. Which program do you need to write HTML ?

  • A graphics program
  • Any text editor
  • HTML -development suite 4
  • All of the above
View Answer
Any text editor

Q14. A much better approach to establish the base URL is to use the ______ element.

  • HEAD
  • BODY
  • BASE
  • None of the above

Q15. How can you make a list that list the items with numbers ?

  • <ul>
  • <list>
  • <ol>
  • None of the above

Q16. The tag which allows you to rest other HTML tags within the description is

  • <TH>
  • <TD>
  • <TR>
  • <CAPTION>
View Answer
<CAPTION>

Q17. How can you open a link in a new browser window?

  • < a href = "url" target = "new">
  • <a href = "url" target= "_blank">
  • <a href = "url".new>
  • <a href = "url" target ="open">
View Answer
<a href = "url" target= "_blank">

Q18. Can the element <First> be replaced with <first>

  • No, they represent different elements altogether
  • Both are same
  • First is correct only
  • first is only correct
View Answer
Both are same

Q19. <INPUT> is

  • format tag
  • empty tag
  • both (a) and (b)
  • None of these
View Answer
empty tag

Q20. The map definition file is generally stored in

  • CGI-BIN
  • RECYCLE-BIN
  • BIN
  • All of these
View Answer
CGI-BIN

Q21. The text inside the <TEXT AREA> tag works like

  • <P> formatted text
  • <T> formatted text
  • <PRE> formatted text
  • none of these
View Answer
<PRE> formatted text

Q22. The __________ attribute sets the text direction as related to the lang attribute.

  • lang
  • sub
  • dir
  • ds

Q23. The year in which HTML was first proposed _______.

  • 1990
  • 1980
  • 2000
  • 1995

Q24. What tag is used to display a picture in a HTML page?

  • picture
  • image
  • img
  • src

Q25. HTML web pages can be read and rendered by _________.

  • Compiler
  • Server
  • Web Browser
  • Interpreter
View Answer
Web Browser

Q26. Fundamental HTML Block is known as ___________.

  • HTML Body
  • HTML Tag
  • HTML Attribute
  • HTML Element
View Answer
HTML Tag

Q27. Which of the following is a Valid Name?

  • <_person>
  • <123 person>
  • Both (a) and (b)
  • None of these
View Answer
<_person>

Q28. The web standard allows programmers on many different computer platforms to dispersed format and display the information server. These programs are called

  • Web Browsers
  • HTML
  • Internet Explorer
  • None of these
View Answer
Web Browsers

Q29. Which the correct e-mail link ?

  • <a href=”mailto:xxx@yyy”>
  • <mail>xxx@yyy</mail>
  • <a href=”xxx@yyy”>
  • <href=”xxx@yyy”>
View Answer
<a href=”mailto:xxx@yyy”>

Q30. What is the correct HTML tag for inserting a linebreak ?

  • <break>
  • <lb>
  • <pre>
  • <br>

About Author :

  • Author of Html MCQ

    Sharad Jaiswal

    Sharad Jaiswal is Sr. Web Developer from Noida area. He have rich experience in PHP, Angular Js, React, javascript and Node .If you any query or project on these programming you can drop your enquiry in comment section.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.