Html MCQ Questions

Html MCQ Questions

  • Satyam Jaiswal
  • 22nd Nov, 2021

Practice best 35+ Html MCQ Questions with Answers, which cover the latest and important topics of HTML (HyperText Markup Language), so you can perform best in Interviews, Competitive Exams, and Placement Drives. This Html MCQ Quiz contains 35+ Multiple Choice Questions and Answers, which are asked various times in exams or interviews.

HTML MCQ Questions and Answers

1) Which attribute specifies a unique alphanumeric identifier to be associated with an element?

  • A. class
  • B.id
  • C.article
  • D.html

2) Which attribute is used to provide an advisory text about an element or its contents?

  • A. tooltip
  • B.dir
  • C.title
  • D.head

3) The attribute of <form> tag

  • A. Method
  • B.Action
  • C.Both (a) & (b)
  • D.None of these

4) Which of the following attributes of text box control allow to limit the maximum character?

  • A. size
  • B.len
  • C.maxlength
  • D.all of these

5) Web pages starts with which ofthe following tag?

  • A. <:Body>
  • B.<:Title>
  • C.<:Html>
  • D.<:Form>

6) HTML is a subset of

  • A. SGMT
  • B.SGML
  • C.SGMD
  • D.None of these

7) Character encoding is _____

  • A. method used to represent numbers in a character
  • B.method used to represent character in a number
  • C.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
  • D.none of these

8) Correct HTML to left align the content inside a table cell is

  • A. <:tdleft>
  • B.<:td raligh = "left" >
  • C.<:td align = "left">
  • D.<:td leftalign>

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?

  • A. dataFormatAs
  • B.datafld
  • C.disabled
  • D.datasrc

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

  • A. itemscope
  • B.itemref
  • C.itemprop
  • D.itemid

11) <a> and </a> are the tags used for

  • A. Adding image
  • B.Aligning text
  • C.Audio-voiced text
  • D.Adding links to your page

12) Choose the correct HTML tag to make a text italic

  • A. <:i>
  • B.<:italic>
  • C.<:it>
  • D.<:il>

13) Which program do you need to write HTML ?

  • A. A graphics program
  • B.Any text editor
  • C.HTML -development suite 4
  • D.All of the above

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

  • A. HEAD
  • B.BODY
  • C.BASE
  • D.None of the above

15) How can you make a list that list the items with numbers ?

  • A. <:ul>
  • B.<:list>
  • C.<:ol>
  • D.None of the above

16) The tag which allows you to rest other HTML tags within the description is

  • A. <:TH>
  • B.<:TD>
  • C.<:TR>
  • D.<:CAPTION>

17) How can you open a link in a new browser window?

  • A. <: a href = "url" target = "new">
  • B.<:a href = "url" target= "_blank">
  • C.<:a href = "url".new>
  • D.<:a href = "url" target ="open">

18) Can the element <First> be replaced with <first>

  • A. No, they represent different elements altogether
  • B.Both are same
  • C.First is correct only
  • D.first is only correct

19) <INPUT> is

  • A. format tag
  • B.empty tag
  • C.both (a) and (b)
  • D.None of these

20) The map definition file is generally stored in

  • A. CGI-BIN
  • B.RECYCLE-BIN
  • C.BIN
  • D.All of these

21) The text inside the <TEXTAREA> tag works like

  • A. <P> formatted text
  • B.<T> formatted text
  • C.<PRE> formatted text
  • D.none of these

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

  • A. lang
  • B.sub
  • C.dir
  • D.ds

23) The year in which HTML was first proposed _______.

  • A. 1990
  • B.1980
  • C.2000
  • D.1995

24) What tag is used to display a picture in a HTML page?

  • A. picture
  • B.image
  • C.img
  • D.src

25) HTML web pages can be read and rendered by _________.

  • A. Compiler
  • B.Server
  • C.Web Browser
  • D.Interpreter

26) Fundamental HTML Block is known as ___________.

  • A. HTML Body
  • B.HTML Tag
  • C.HTML Attribute
  • D.HTML Element

27) Which of the following is a Valid Name?

  • A. <:_person>
  • B.<:123 person>
  • C.Both (a) and (b)
  • D.None of these

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

  • A. Web Browsers
  • B.HTML
  • C.Internet Explorer
  • D.None of these

29) Which the correct e-mail link ?

  • A. <:a href=”mailto:xxx@yyy”>
  • B.<:mail>xxx@yyy
  • C.<:a href=”xxx@yyy”>
  • D.<:href=”xxx@yyy”>

30) What is the correct HTML tag for inserting a linebreak ?

  • A. <:break>
  • B.<:lb>
  • C.<:pre>
  • D.<:br>

31) HTML stands for.........

  • A. HighText Machine Language
  • B.HyperText Markup Language
  • C.HyperText and links Markup Language
  • D.None of the above

32) The correct sequence of HTML tags for starting a webpage is..........

  • A. HTML, Head, Title, Body
  • B.HTML, Body, Title, Head
  • C.Head, Title, HTML, body
  • D.None of the above

33) What does an html tag do?

  • A. It hides programming instructions from view
  • B.It connects your web site to an operating environment
  • C.It determines the organizational structure of your Web site
  • D.It specifies formatting and layout instructions for your web page

34) HTML language is a set of markup........

  • A. Tags
  • B.Sets
  • C.Groups
  • D.Attributes

35) In HTML document the tags are.......

  • A. Hidden keywords
  • B.Used to display the content
  • C.Both A & B
  • D.None of the above

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
May
Perl MCQ
01st
Jul
JDBC MCQ
01st
Nov
SAP ABAP MCQ
01st
Nov
RDBMS MCQ