HTML MCQS with Answers

HTML is used to create web pages, All important HTML MCQS are given with answers, These HTML MCQS cover all topics related to HTML. The right answer is marked in bold.

1) The term HTML stands for?

  1. Hypertext Made Language
  2. Hypertext Marking Language
  3. Hypertext Markup Language
  4. Hypertext Marked Language

2) How to create a hyperlink in HTML?

  1. <a title="url"></a>
  2. <a href="url"></a>
  3. <a link="url"></a>
  4. <a target="url"></a>

3) The term XHTML stands for?

  1. Extensible Hypertext Markup Language
  2. Extensible Hypertext Marked Language
  3. Extended Hypertext Marking Language
  4. Extended Hypertext Markup Language

4) HTML Tag which defines incorrect text?

  1. HTML i tag
  2. HTML ins tag
  3. HTML del tag
  4. HTML s tag

5) HTML attribute which is used for the datalist element?

  1. list attribute
  2. data attribute
  3. datalist attribute
  4. listdata attribute

6) HTML Tag which define content to display when ruby annotations are not supported?

  1. HTML rp tag
  2. HTML noruby tag
  3. HTML rt tag
  4. HTML tr tag

7) HTML attribute which specifies that audio or video file will repeat every time after it's finished?

  1. auto attribute
  2. loop attribute
  3. method attribute
  4. autoplay attribute

8) HTML attribute which specifies that script will run when the element leaves a particular target or point while being dragged?

  1. ondragleave attribute
  2. onenter attribute
  3. onleave attribute
  4. onmove attribute

9) HTML Tag which defines sample output of computer program?

  1. HTML code tag
  2. HTML calculation tag
  3. HTML samp tag
  4. HTML output tag

10) HTML attribute which specifies that script will run when the element is dragged over a particular target or point?

  1. ondrag attribute
  2. onpush attribute
  3. onmove attribute
  4. ondragover attribute

11) HTML attribute which specifies that script will run when the dragging process of element has just started?

  1. ondrag attribute
  2. onpull attribute
  3. onstart attribute
  4. ondragstart attribute

12) HTML Tag which defines explanation of characters?

  1. HTML char tag
  2. HTML rt tag
  3. HTML rp tag
  4. HTML tr tag

13) HTML attribute which specifies that script will run when the element is being dropped?

  1. onleave attribute
  2. onstop attribute
  3. ondrop attribute
  4. onstart attribute

14) HTML Tag which defines ruby annotation?

  1. HTML rp tag
  2. HTML rt tag
  3. HTML ruby tag
  4. HTML rb tag

15) What is the right way to create an ordered list with the lowercase letters?

  1. <ol id = "a">
  2. <ol name = "a">
  3. <ol type = "a" >
  4. <ol title = "a">

16) HTML attribute used to define the inline styles is?

  1. type
  2. title
  3. style
  4. name

17) Which of the following is the section tag in HTML5?

  1. <section>
  2. <sec>
  3. <div>
  4. None

18) HTML attribute which defines the width of text area?

  1. colspan attribute
  2. cols attribute
  3. class attribute
  4. width attribute

19) HTML attribute which defines the language of element's content?

  1. language attribute
  2. name attribute
  3. lang attribute
  4. type attribute

20) HTML attribute which defines the number of columns table cell must have?

  1. cols attribute
  2. columns attribute
  3. colspan attribute
  4. width attribute

21) Maps are defined using?

  1. HTML map tag
  2. HTML iframe tag
  3. HTML embed tag
  4. HTML form tag

22) HTML attribute which defines the content type of meta data?

  1. title attribute
  2. name attribute
  3. content attribute
  4. meta attribute

23) CSS style sheets are included using?

  1. HTML li tag
  2. HTML link tag
  3. HTML script tag
  4. HTML meta tag

24) HTML attribute which defines if the content of Html element is editable or not?

  1. content attribute
  2. type attribute
  3. contenteditable attribute
  4. edit attribute

25) HTML attribute which allows the browser to display the control buttons for the audio or video file?

  1. url attribute
  2. href attribute
  3. data attribute
  4. controls attribute

26) HTML legend Tag is used for?

  1. For captions of fieldset element
  2. For links
  3. For main headings
  4. For captions of input elements

27) HTML attribute which defines the coordinates of the area element?

  1. coords attribute
  2. position attribute
  3. with attribute
  4. data attribute

28) HTML attribute which defines the URL of the resource that is linked with object?

  1. data-* attribute
  2. data attribute
  3. url attribute
  4. control attribute

29) List items are defined using?

  1. ul tag
  2. list tag
  3. ol tag
  4. li tag

30) Main content of website should be put inside?

  1. HTML header tag
  2. HTML main tag
  3. HTML head tag
  4. HTML h1 tag

31) Which HTML Tag is used to define highlighted text?

  1. HTML mark tag
  2. HTML h1 tag
  3. HTML strong tag
  4. HTML head tag

32) HTML meta Tag defines?

  1. menu of website
  2. style sheets
  3. scripts
  4. Meta data of HTML Document

33) HTML attribute which specifies that the script must always run on abort?

  1. onabort attribute
  2. stop attribute
  3. pause attribute
  4. del attribute

34) Navigation menus are made using?

  1. HTML menu tag
  2. HTML nav tag
  3. HTML ol tag
  4. HTML li tag

35) HTML tag which was deprecated in HTML5?

  1. HTML div tag
  2. HTML noframes tag
  3. HTML noscript tag
  4. HTML main tag

36) HTML attribute which specifies that the script must always run after the desired document is printed?

  1. onafterprint attribute
  2. onprint attribute
  3. print attribute
  4. start attribute

37) HTML Tag which defines alternative content if script tag is not supported?

  1. HTML noscript tag
  2. HTML fieldset tag
  3. HTML script tag
  4. HTML link tag

38) Which character is used to represent the closing of HTML tag?

  1. /
  2. \
  3. #
  4. .

39) HTML Tag which defines embedded object?

  1. HTML embed tag
  2. HTML iframe tag
  3. HTML link tag
  4. HTML object tag

40) Ordered list is defined using?

  1. HTML ol tag
  2. HTML ul tag
  3. HTML li tag
  4. HTML link tag

41) HTML is a subset of?

  1. SGMT
  2. SGMM
  3. SGML
  4. XGML

42) Which of the following is an empty HTML element?

  1. <header>
  2. <select>
  3. <div>
  4. <input>

43) HTML Tag which defines group of options in drop-down list?

  1. HTML ol tag
  2. HTML optgroup tag
  3. HTML option tag
  4. HTML li tag

44) HTML Tag which defines important text?

  1. HTML b tag
  2. HTML strong tag
  3. HTML i tag
  4. HTML ins tag

45) HTML attribute which specifies that the script must always run before the desired document is printed?

  1. onprint attribute
  2. onbeforeprint attribute
  3. print attribute
  4. before attribute

46) HTML Tag used to write CSS Code is?

  1. HTML style tag
  2. HTML link tag
  3. HTML script tag
  4. HTML meta tag

47) HTML attribute which specifies that the script must always run before the time when document is unloaded?

  1. load attribute
  2. onload attribute
  3. onbeforeunload attribute
  4. time attribute

48) HTML attribute which specifies that script will run once the element is out of focus?

  1. onselect attribute
  2. focus attribute
  3. onfocus attribute
  4. onblur attribute

49) HTML Tag which defines inline container used to style text?

  1. HTML span tag
  2. HTML div tag
  3. HTML inline tag
  4. HTML p tag

50) HTML Tag which defines strike-through text?

  1. HTML br tag
  2. HTML hr tag
  3. HTML rt tag
  4. HTML strike tag
1 2 3 4 5 6 7 8