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?
- Hypertext Made Language
- Hypertext Marking Language
- Hypertext Markup Language ✔
- Hypertext Marked Language
2) How to create a hyperlink in HTML?
- <a title="url"></a>
- <a href="url"></a> ✔
- <a link="url"></a>
- <a target="url"></a>
3) The term XHTML stands for?
- Extensible Hypertext Markup Language ✔
- Extensible Hypertext Marked Language
- Extended Hypertext Marking Language
- Extended Hypertext Markup Language
4) HTML Tag which defines incorrect text?
- HTML i tag
- HTML ins tag
- HTML del tag
- HTML s tag ✔
5) HTML attribute which is used for the datalist element?
- list attribute ✔
- data attribute
- datalist attribute
- listdata attribute
6) HTML Tag which define content to display when ruby annotations are not supported?
- HTML rp tag ✔
- HTML noruby tag
- HTML rt tag
- HTML tr tag
7) HTML attribute which specifies that audio or video file will repeat every time after it's finished?
- auto attribute
- loop attribute ✔
- method attribute
- autoplay attribute
8) HTML attribute which specifies that script will run when the element leaves a particular target or point while being dragged?
- ondragleave attribute ✔
- onenter attribute
- onleave attribute
- onmove attribute
9) HTML Tag which defines sample output of computer program?
- HTML code tag
- HTML calculation tag
- HTML samp tag ✔
- HTML output tag
10) HTML attribute which specifies that script will run when the element is dragged over a particular target or point?
- ondrag attribute
- onpush attribute
- onmove attribute
- ondragover attribute ✔
11) HTML attribute which specifies that script will run when the dragging process of element has just started?
- ondrag attribute
- onpull attribute
- onstart attribute
- ondragstart attribute ✔
12) HTML Tag which defines explanation of characters?
- HTML char tag
- HTML rt tag ✔
- HTML rp tag
- HTML tr tag
13) HTML attribute which specifies that script will run when the element is being dropped?
- onleave attribute
- onstop attribute
- ondrop attribute ✔
- onstart attribute
14) HTML Tag which defines ruby annotation?
- HTML rp tag
- HTML rt tag
- HTML ruby tag ✔
- HTML rb tag
15) What is the right way to create an ordered list with the lowercase letters?
- <ol id = "a">
- <ol name = "a">
- <ol type = "a" > ✔
- <ol title = "a">
16) HTML attribute used to define the inline styles is?
- type
- title
- style ✔
- name
17) Which of the following is the section tag in HTML5?
- <section> ✔
- <sec>
- <div>
- None
18) HTML attribute which defines the width of text area?
- colspan attribute
- cols attribute ✔
- class attribute
- width attribute
19) HTML attribute which defines the language of element's content?
- language attribute
- name attribute
- lang attribute ✔
- type attribute
20) HTML attribute which defines the number of columns table cell must have?
- cols attribute
- columns attribute
- colspan attribute ✔
- width attribute
21) Maps are defined using?
- HTML map tag ✔
- HTML iframe tag
- HTML embed tag
- HTML form tag
22) HTML attribute which defines the content type of meta data?
- title attribute
- name attribute
- content attribute ✔
- meta attribute
23) CSS style sheets are included using?
- HTML li tag
- HTML link tag ✔
- HTML script tag
- HTML meta tag
24) HTML attribute which defines if the content of Html element is editable or not?
- content attribute
- type attribute
- contenteditable attribute ✔
- edit attribute
25) HTML attribute which allows the browser to display the control buttons for the audio or video file?
- url attribute
- href attribute
- data attribute
- controls attribute ✔
26) HTML legend Tag is used for?
- For captions of fieldset element ✔
- For links
- For main headings
- For captions of input elements
27) HTML attribute which defines the coordinates of the area element?
- coords attribute ✔
- position attribute
- with attribute
- data attribute
28) HTML attribute which defines the URL of the resource that is linked with object?
- data-* attribute
- data attribute ✔
- url attribute
- control attribute
29) List items are defined using?
- ul tag
- list tag
- ol tag
- li tag ✔
30) Main content of website should be put inside?
- HTML header tag
- HTML main tag ✔
- HTML head tag
- HTML h1 tag
31) Which HTML Tag is used to define highlighted text?
- HTML mark tag ✔
- HTML h1 tag
- HTML strong tag
- HTML head tag
32) HTML meta Tag defines?
- menu of website
- style sheets
- scripts
- Meta data of HTML Document ✔
33) HTML attribute which specifies that the script must always run on abort?
- onabort attribute ✔
- stop attribute
- pause attribute
- del attribute
34) Navigation menus are made using?
- HTML menu tag
- HTML nav tag ✔
- HTML ol tag
- HTML li tag
35) HTML tag which was deprecated in HTML5?
- HTML div tag
- HTML noframes tag ✔
- HTML noscript tag
- HTML main tag
36) HTML attribute which specifies that the script must always run after the desired document is printed?
- onafterprint attribute ✔
- onprint attribute
- print attribute
- start attribute
37) HTML Tag which defines alternative content if script tag is not supported?
- HTML noscript tag ✔
- HTML fieldset tag
- HTML script tag
- HTML link tag
38) Which character is used to represent the closing of HTML tag?
- / ✔
- \
- #
- .
39) HTML Tag which defines embedded object?
- HTML embed tag
- HTML iframe tag
- HTML link tag
- HTML object tag ✔
40) Ordered list is defined using?
- HTML ol tag ✔
- HTML ul tag
- HTML li tag
- HTML link tag
41) HTML is a subset of?
- SGMT
- SGMM
- SGML ✔
- XGML
42) Which of the following is an empty HTML element?
- <header>
- <select>
- <div>
- <input> ✔
43) HTML Tag which defines group of options in drop-down list?
- HTML ol tag
- HTML optgroup tag ✔
- HTML option tag
- HTML li tag
44) HTML Tag which defines important text?
- HTML b tag
- HTML strong tag ✔
- HTML i tag
- HTML ins tag
45) HTML attribute which specifies that the script must always run before the desired document is printed?
- onprint attribute
- onbeforeprint attribute ✔
- print attribute
- before attribute
46) HTML Tag used to write CSS Code is?
- HTML style tag ✔
- HTML link tag
- HTML script tag
- HTML meta tag
47) HTML attribute which specifies that the script must always run before the time when document is unloaded?
- load attribute
- onload attribute
- onbeforeunload attribute ✔
- time attribute
48) HTML attribute which specifies that script will run once the element is out of focus?
- onselect attribute
- focus attribute
- onfocus attribute
- onblur attribute ✔
49) HTML Tag which defines inline container used to style text?
- HTML span tag ✔
- HTML div tag
- HTML inline tag
- HTML p tag
50) HTML Tag which defines strike-through text?
- HTML br tag
- HTML hr tag
- HTML rt tag
- HTML strike tag ✔