logo
  • Home
  • Rank
  • Tests
  • About
  • Training
  • Programming
  • CS
  • IT
  • IS
  • ECE
  • EEE
  • EE
  • Civil
  • Mechanical
  • Chemical
  • Metallurgy
  • Instrumentation
  • Aeronautical
  • Aerospace
  • Biotechnology
  • Agriculture
  • MCA
  • BCA
  • Internship
  • Contact

HTML Multiple Choice Questions | MCQs | Quiz

HTML Interview Questions and Answers
Practice HTML questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams.

Get Started

•   Traditional HTML & XHTML
•   (X)HTML Rules
•   Web Browsers
•   Choosing Editors & IDEs
•   Choosing Web Servers
•   Compatibility Libraries
•   Metadata
•   Microdata
•   Favicons & Icons
•   (X)HTML Major Themes
•   HTML5 Introduction - 1
•   HTML5 Introduction - 2
•   HTTP Overview
•   Embracing Web Markup
•   HTML5 Document Structure
•   HTML5 Open Media Effort
•   HTML5 Video
•   HTML5 Audio
•   Canvas Clientside Graphics
•   HTML5 Form Changes
•   Web Applications Elements
•   HTML5: Beyond Markup
•   Major HTML5 Themes
•   Scalable Vector Graphics
•   Audio & its MIME Types
•   Forms Input Types
•   Web Storage
•   Forms & Minification
•   Web Communications
•   XHTML Element Reference
•   HTML5 Attributes Reference
•   HTML 4.x Entities
•   HTML Fonts
•   Document Type Definitions
•   Semantic Elements
•   Drag & Drop
•   Geolocation API
•   Cache Manifest File
•   Images Optimization
•   HTML Features - Modernizr
•   URL Encoding
•   Web Databases
•   Image Sprites
•   ↓ Web Performance ↓
•   Web Optimization - 1
•   Web Optimization - 2
•   Tables Working
•   JavaScript & jQuery - 1
•   JavaScript & jQuery - 2
•   JavaScript & jQuery - 3
•   Linking between Pages
•   Bullet & Definition Lists
•   Other Sites Linking
•   Adding Flash Videos
•   Styling HTML5 Layout
•   HTML5 Layout Elements
•   Search Engine Optimization
•   HTML Google Maps - 1
•   HTML Google Maps - 2
•   HTML Plugins - 1
•   HTML Plugins - 2
•   HTML5 Semantics - 1
•   HTML5 Semantics - 2
•   HTML5 Semantics - 3
•   HTML5 YouTube Videos
•   HTML Geolocation
•   Responsive Overview - 1
•   Responsive Overview - 2
•   Responsive Overview - 3
•   Responsive Overview - 4
•   Responsive Overview - 5
•   Responsive Overview - 6
•   Responsive Overview - 7
•   Responsive Overview - 8

Best Reference Books

•   HTML Books


« Prev Page
Next Page »

HTML Questions & Answers – Elements and Attributes to Support Web Applications

Posted on July 13, 2018 by Manish

This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “Elements and Attributes to Support Web Applications”.

1. What does ‘On-Screen Action’ means in the testing of HTML5 applications?
a) Using Drag action
b) Using new input type
c) Using play and pause action of audio and video elements
d) Verifying SVG and Canvas elements
View Answer

Answer: a
Explanation: While testing of HTML5 for a browser i.e. whether its elements are supported by the browser or not one can use draggable content using Drag action and this action can be called through On-Screen Action operation.
advertisement

2. What can be used to verify a displayed graphics?
a) Property checkpoints
b) Region checkpoints
c) On-Screen Action
d) Local STorage
View Answer

Answer: b
Explanation: Region checkpoints are used to verify a displayed graphics. It is a kind of test operation which gives verification of application’s window or control is displayed correctly or not. Object’s property is verified by region checkpoints which is test operation. Local storage is for storing data.

3. Which element has been removed from HTML5 (W3C) specification?
a) <figure>
b) <nav>
c) <hgroup>
d) <aside>
View Answer

Answer: c
Explanation: A section that is tangentially related to its surrounding content is defined by <aside> tag. A block of navigation links is provided by newly added element in HTML5 called <nav>. <hgroup> tag has been removed from HTML5 specification, but it can be seen in WHATWG version of HTML. The purpose of this element is how headings are displayed. It’s practice is limited to theory only. <figure> tag specifies its own self defined content which may contain diagrams, photos etc.

4. Which of the following is used for plug-in content?
a) <embed>
b) <progress>
c) <meter>
d) <source>
View Answer

Answer: a
Explanation: <embed> tag is new in HTML5 which also helps in validation of HTML5 page. It has attributes like height, src, type and width. HTML4 does not support this tag. Multiple media sources for video , audio and pictures are provided by <source> tag. <meter> tag gives a scalar measurement within a particular range. Progress of a task is shown by <progress> element.

5. Which of the following does not lie under the attribute of <input> and is not supported by Opera?
a) url
b) time
c) tel
d) option
View Answer

Answer: d
Explanation: <input> element type has new values as ‘url’, ‘email’, ‘datetime’, ‘date’, ‘month’, ‘tel’, ‘time’, ‘number’, ‘search’, ‘color’, ‘range’, ‘datetime-local’, ‘week’.

6. Which is the new attribute of <input> element that is used to change the appearance of checkbox?
a) Indeterminate
b) Media
c) EI
d) Target
View Answer

Answer: a
Explanation: The indeterminate is actually not an attribute, it is the property of checkbox which can be change via JavaScript, e.g. Var checkbox=document.getElementById(“any-checkbox”); Checkbox.indeterminate=true;
advertisement

7. Which attribute does not lie inside <a> and <area> elements?
a) Media
b) Ping
c) Hreflang
d) Preload
View Answer

Answer: d
Explanation: Preload is the attribute of the <video> element. Media, ping, hreflang, rel are the attribute used with <a> and <area> elements.

8. Which element does not support autofocus attribute?
a) <input>
b) <select>
c) <textarea>
d) <base>
View Answer

Answer: d
Explanation: Autofocus is a new attribute as well as very interesting one. It can be specified on <input>, <textarea>, <button> and <select> elements. It is a way to focus a form control when the page is loaded.

9. Which element does not support form attribute?
a) <input>
b) <output>
c) <meta>
d) <button>
View Answer

Answer: c
Explanation: The new form attribute is for <input>, <select>, <textarea>, <button>, <output> and <fieldset>. One can place these elements anywhere on the page.

10. Which attribute of <input> element can be used both with <datalist> and <select> elements?
a) List
b) Pattern
c) Multiple
d) Max
View Answer

Answer: a
Explanation: List is the new attribute of <input> element and can be used together with <datalist> and <select> elements. Other attributes like pattern, multiple, max, min, step are new attribute used with the <input> element only.

11. Which is not a Boolean attribute?
a) Multiple
b) Novalidate
c) Formvalidate
d) Formtarget
View Answer

Answer: d
Explanation: Formtarget attribute is a Boolean attribute that must have a value that is a valid browsing context name. Multiple is a new Boolean attribute of <input> the element which specifies constraint, novalidate, and formvalidate are <form> attribute and are Boolean as well.

12. Which of the following is not the keyword of form method attribute?
a) GET
b) POST
c) PUT
d) OUT
View Answer

Answer: d
Explanation: The keyword GET, POST, PUT, DELETE mapped to the state GET, POST, PUT, DELETE and indicating the HTTP method respectively.
advertisement

13. What is the work of async attribute?
a) It influences script loading
b) It gives a label to the menu
c) It validates form data
d) Enables a set of extra restrictions on any content
View Answer

Answer: a
Explanation: Async is the new attribute of the <script> element which influences script loading and its execution. It is a Boolean attribute which shows the manner of script execution. If async is present, the script will be executed asynchronously, as soon as it is available.

14. Which is not <iframe> attribute?
a) Seamless
b) Srcdoc
c) Sizes
d) Sandbox
View Answer

Answer: c
Explanation: Sizes is the attribute of <link> element. Sandbox is the attribute of <iframe> element that enables a set of extra restrictions on any content, seamless is a Boolean attribute of <iframe> which seamlessly included in the parent document, srcdoc attribute gives the content of the page that the nested browsing context is to contain.

15. Which is not a new global attribute in HTML5?
a) Contenteditable
b) Contextmenu
c) Title
d) Draggable
View Answer

Answer: c
Explanation: Contenteditable, contextmenu, data, draggable, hidden, role, aria, spellcheck all are new global attributes introduced in HTML5. Class, dir, id, lang, style, tabindex, title are the attributes of HTML4 and now specified as global in HTML5.

Sanfoundry Global Education & Learning Series – HTML.

To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.

« Prev Page - HTML Questions & Answers – HTML5 Form Changes
» Next Page - HTML Questions & Answers – HTML5: Beyond Markup

« HTML Questions & Answers – HTML5 Form Changes
HTML Questions & Answers – HTML5: Beyond Markup »
advertisement

Deep Dive @ Sanfoundry:

  1. Java Programming Examples on Arrays
  2. Javascript Questions and Answers
  3. C Programming Examples on Arrays
  4. C# Programming Examples on Sorting
  5. CSS Questions and Answers
  6. C# Programming Examples on Arrays
  7. Bachelor of Computer Applications Questions and Answers
  8. Master of Computer Applications Questions and Answers
  9. Recruitment Support Service – Employers
  10. HTML Questions and Answers
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer and SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage & Cluster Administration, Advanced C Programming, SAN Storage Technologies, SCSI Internals and Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him below:
LinkedIn | Facebook | Twitter | Google+

Best Careers

Developer Tracks
SAN Developer
Linux Kernel Developer
Linux Driver Developer
Linux Network Developer

Live Training Photos
Mentoring
Software Productivity
GDB Assignment
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree, Cognizant and Startups.

Best Trainings

SAN I - Technology
SAN II - Admin
Linux Fundamentals
Advanced C Training
Linux-C Debugging
System Programming
Network Programming
Linux Threads
Kernel Programming
Kernel Debugging
Linux Device Drivers

Best Reference Books

Computer Science Books
Algorithm & Programming Books
Electronics Engineering Books
Electrical Engineering Books
Chemical Engineering Books
Civil Engineering Books
Mechanical Engineering Books
Industrial Engineering Books
Instrumentation Engg Books
Metallurgical Engineering Books
All Stream Best Books

Questions and Answers

1000 C Questions & Answers
1000 C++ Questions & Answers
1000 C# Questions & Answers
1000 Java Questions & Answers
1000 Linux Questions & Answers
1000 Python Questions
1000 PHP Questions & Answers
1000 Hadoop Questions
Cloud Computing Questions
Computer Science Questions
All Stream Questions & Answers

India Internships

Computer Science Internships
Instrumentation Internships
Electronics Internships
Electrical Internships
Mechanical Internships
Industrial Internships
Systems Internships
Chemical Internships
Civil Internships
IT Internships
All Stream Internships

About Sanfoundry

About Us
Copyright
Terms
Privacy Policy
Jobs
Bangalore Training
Online Training
Developers Track
Mentoring Sessions
Contact Us
Sitemap
© 2011 Sanfoundry. All Rights Reserved.