0% found this document useful (0 votes)
158 views

1000 HTML MCQ (Multiple Choice Questions) - Sanfoundry

Uploaded by

NUTMEG 3640
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
158 views

1000 HTML MCQ (Multiple Choice Questions) - Sanfoundry

Uploaded by

NUTMEG 3640
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

HTML MCQ (Multiple Choice

Questions)
Our comprehensive collection of 1000 HTML MCQ (Multiple Choice
Questions). This resource is designed to help you prepare for exams,
quizzes, interviews, and certifications related to HTML. Covering
over 100 topics, these MCQs will enhance your understanding of
HTML and its applications.

1. What is HTML?
a) HTML describes the structure of a webpage
b) HTML is the standard markup language mainly used to create web
pages
c) HTML consists of a set of elements that helps the browser how to
view the content
d) All of the mentioned
View Answer

2. Who is the father of HTML?


a) Rasmus Lerdorf
b) Tim Berners-Lee
c) Brendan Eich
d) Sergey Brin
View Answer

3. HTML stands for __________


a) HyperText Markup Language
b) HyperText Machine Language
c) HyperText Marking Language
d) HighText Marking Language
View Answer
:
4. What is the correct syntax of doctype in HTML5?
a) </doctype html>
b) <doctype html>
c) <doctype html!>
d) <!doctype html>
View Answer

5. Which of the following is used to read an HTML page and render


it?
a) Web server
b) Web network
c) Web browser
d) Web matrix
View Answer

6. Which of the following is not a difference between HTML and


XHTML?
a) Charset in both html and xhtml is “text/html”
b) Tags and attributes are case-insensitive in HTML but not in
XHTML
c) Special characters must be escaped using character entities in
XHTML unlike HTML
d) Charset in html is “text/html” where as in xhtml it is
“application/xml+xhtml”
View Answer

7. Which of the following tag is used for inserting the largest heading
in HTML?
a) head
b) <h1>
c) <h6>
d) heading
View Answer
:
8. What is DOM in HTML?
a) Language dependent application programming
b) Hierarchy of objects in ASP.NET
c) Application programming interface
d) Convention for representing and interacting with objects in html
documents
View Answer

9. In which part of the HTML metadata is contained?


a) head tag
b) title tag
c) html tag
d) body tag
View Answer

10. Which element is used to get highlighted text in HTML5?


a) <u>
b) <mark>
c) <highlight>
d) <b>
View Answer

11. Which of the following is not a HTML5 tag?


a) <track>
b) <video>
c) <slider>
d) <source>
View Answer

12. How do we write comments in HTML?


a) </…….>
b) <!……>
c) </……/>
:
d) <…….!>
View Answer

13. Which of the following elements in HTML5 defines video or


movie content?
a) <video>
b) <movie>
c) <audio>
d) <media>
View Answer

14. Which of the following is not the element associated with the
HTML table layout?
a) alignment
b) color
c) size
d) spanning
View Answer

15. Which element is used for or styling HTML5 layout?


a) CSS
b) jQuery
c) JavaScript
d) PHP
View Answer

16. Which HTML tag is used for making character appearance bold?
a) <u>content</u>
b) <b>content</b>
c) <br>content</br>
d) <i>content</i>
View Answer

17. Which HTML tag is used to insert an image?


:
a) <img url=”htmllogo.jpg” />
b) <img alt=”htmllogo.jpg” />
c) <img src=”htmllogo.jpg” />
d) <img link=”htmllogo.jpg” />
View Answer

18. HTML is a subset of ___________


a) SGMT
b) SGML
c) SGME
d) XHTML
View Answer

19. Which character is used to represent when a tag is closed in


HTML?
a) #
b) !
c) /
d) \
View Answer

20. Which of the following HTML code will make an image clickable?
a)

<a href="https://www.sanfoundry.com/">Sanfoundry Home Page</a>

b)

<img src="https://www.sanfoundry.com/sanfoundry-logo">
<a href="https://www.sanfoundry.com/">Sanfoundry Home Page</a>
</img>
:
c)

<a href="https://www.sanfoundry.com/">Sanfoundry Home Page</a>


<img src="https://www.sanfoundry.com/sanfoundry-logo" />

d)

<a href="https://www.sanfoundry.com/"><img src="https://www.sanfoun

View Answer

21. Among the following, which is the HTML paragraph tag?


a) <p>
b) <pre>
c) <hr>
d) <a>
View Answer

22. In HTML, which attribute is used to create a link that opens in a


new window tab?
a) src=”_blank”
b) alt=”_blank”
c) target=”_self”
d) target=”_blank”
View Answer

23. Which HTML element is used for short quote?


a) <em>
b) <abbr>
c) <q>
d) <blockquote>
View Answer
:
24. Which of the following HTML tag is used to create an unordered
list?
a) <ol>
b) <ul>
c) <li>
d) <ll>
View Answer

25. Which HTML element is used for abbreviation or acronym?


a) <abbr>
b) <blockquote>
c) <q>
d) <em>
View Answer

26. Which of the following HTML tag is used to add a row in a table?
a) <th>
b) <td>
c) <tr>
d) <tt>
View Answer

27. What is the work of <address> element in HTML5?


a) contains IP address
b) contains home address
c) contains url
d) contains contact details for author
View Answer

28. Which of the following tag is used to create a text area in HTML
Form?
a) <textarea> </textarea>
b) <text></text>
:
c) <input type=”text” />
d) <input type=”textarea” />
View Answer

29. To show deleted text, which HTML element is used?


a) <del>
b) <em>
c) <strong>
d) <ins>
View Answer

30. What is the correct syntax of web address?


a) port://domain.filenmae:path/scheme/prefix
b) prefix://scheme.port:domain/filename/path
c) path://prefix.port:domain/filename/scheme
d) scheme://prefix.domain:port/path/filename
View Answer

31. Which tag is used to create a dropdown in HTML Form?


a) <input>
b) <select>
c) <text>
d) <textarea>
View Answer

32. Which tag is used to create a numbered list in HTML?


a) <ol>
b) <ul>
c) <li>
d) <ll>
View Answer

33. How to create a checkbox in HTML Form?


a) <input type=”text”>
:
b) <input type=”textarea”>
c) <input type=”checkbox”>
d) <input type=”button”>
View Answer

34. How to insert Hyperlink in HTML Page?


a)

<a href="https://www.sanfoundry.com/1000-html-questions-answers/">H

b)

<a target="https://www.sanfoundry.com/1000-html-questions-answers/"

c)

<a src="https://www.sanfoundry.com/1000-html-questions-answers/">HT

d)

<a>https://www.sanfoundry.com/1000-html-questions-answers/</a>

View Answer

35. Which of the following extension is used to save an HTML file?


a) .hl
b) .h
c) .htl
d) .html
View Answer
:
36. Which tag is used to create a blank line in HTML?
a) <b>
b) <br>
c) <em>
d) <a>
View Answer

37. Which HTML tag is used to convert the plain text into italic
format?
a) <b>
b) <p>
c) <i>
d) <a>
View Answer

38. What is the use of <hr/> tag in HTML?


a) For making content appearance italics
b) To create vertical rule between sections
c) To create a line break
d) To create horizontal rule between sections
View Answer

39. Which attribute is not essential under <iframe>?


a) frameborder
b) width
c) height
d) src
View Answer

40. Which works similar to <b> element?


a) <blockquote>
b) <strong>
c) <em>
:
d) <i>
View Answer

41. Which tag is used to underline the text in HTML?


a) <p>
b) <u>
c) <i>
d) <ul>
View Answer

42. Which attribute specifies a unique alphanumeric identifier to be


associated with an element?
a) type
b) article
c) id
d) class
View Answer

43. Which of the following is an HTML specification used to add


more information to HTML tags?
a) Modifydata
b) Minidata
c) Macrodata
d) Microdata
View Answer

44. Which HTML element is used for YouTube videos?


a) <samp>
b) <small>
c) <frame>
d) <iframe>
View Answer

45. Which of the following HTML element is used for canvas


:
graphics?
a) <css>
b) <paint>
c) <canvas>
d) <graphic>
View Answer

Chapterwise Multiple Choice Questions


on HTML
Our 1000+ MCQs focus on all topics of the HTML subject, covering
100+ topics. This HTML MCQ will help you to prepare for exams,
contests, online tests, quizzes, viva-voce, interviews, and
certifications. You can practice these MCQs chapter by chapter
starting from the 1st chapter or you can jump to any chapter of your
choice.

1. HTML Fundamentals
2. HTML Markup, HTML Forms, HTML Video, HTML Audio &
Other Multimedia
3. HTML and XHTML Fundamentals
4. HTML Fonts, Tags and Elements
5. HTML Images & Web Page Files
6. HTML Tables, Javascript & Jquery Basics
7. HTML Text, Links & Lists
8. HTML Flash Videos, HTML5 Layout & Practical Information
9. Advance HTML

1. HTML MCQ on Fundamentals


The section contains HTML multiple choice questions and answers
:
on html basics and rules, web browsers, editors and ides, metadata,
microdata, favicons & icons, html major themes, http overview, web
servers and compatibility libraries.

Traditional HTML and XHTML


HTML Microdata
Rules of (X)HTML
HTML Favicons and Icons
Web Browsers
Major Themes of (X)HTML
Choosing Editors and IDEs
HTML5 Basics – 1
Choosing Web Servers
HTML5 Basics – 2
Compatibility Libraries
HTTP Overview
HTML Metadata

2. Multiple Choice Questions on HTML


Markup, Forms, Video, Audio & Other
Multimedia
The section contains HTML MCQ on web markup, document
structures, open media effort, video and audio, canvas graphics,
forms, scalable vector graphics, mime types, web storage, forms
input types and its working, html5 form changes and beyond
markup, html5 themes, web socket communications and
minification.

Embracing the Reality of Web


HTML5 Beyond Markup
Markup
Major HTML5 Themes
HTML5 Document Structure
HTML5 Scalable Vector
HTML5 Open Media Effort
Graphics (SVG)
HTML5 Video
HTML5 Audio and its MIME
HTML5 Audio
Types
HTML5 Client-Side Graphics with
HTML5 Forms Input Types
Canvas
Web Storage
HTML5 Form Changes
Forms & Minification
HTML5 Applicationn Elements &
Web Socket Communications
Attributes

3. MCQ on HTML and XHTML


Fundamentals
:
The section contains HTML MCQs on html and xhtml elements and
attributes, HTML 4.x and XHTML 1.x character entities.

XHTML Element Reference


HTML 4.x and XHTML 1.x
HTML MCQ on Common
Character Entities
Attributes Reference

4. HTML MCQ on Fonts, Tags and


Elements
The section contains HTML multiple choice questions on document
type definitions, semantic structures and elements, drag and drop,
html fonts and geolocation API.

HTML Fonts
HTML Drag and Drop
Document Type Definitions
HTML Geolocation API
HTML Semantic Structures and Elements

5. HTML MCQ on Images & Web Page


Files
The section contains HTML questions and answers on cache files,
image optimizations, url encoding, web databases, web performance
optimization, image sprites and client side templating.

Application Cache and


Cache Manifest File Web Databases
Optimization of Images Using Image Sprites & Standardizing
Adding Features Safely Client-Side Templating
with Modernizr Web Performance Optimization – 1
HTML MCQ on URL Web Performance Optimization – 2
Encoding

6. HTML MCQ on Tables, Javascript &


Jquery Basics
The section contains MCQs on HTML tables, javascript and jquery
:
basics.

Essential JavaScript and jQuery –


HTML Tables
2
Essential JavaScript and jQuery
Essential JavaScript and jQuery –
–1
3

7. HTML MCQ on Text, Links & Lists


The section contains multiple choice questions on HTML headings,
paragraphs, tags, bullets and definition lists, email links and its
decoration, linking between pages and other sites.

HTML Headings, Paragraphs, Tags


& Linking between Pages Linking to Other Sites, Email
Numbered, Bullet and Definition Links and its Decoration
Lists

8. MCQ on HTML Flash Videos, HTML5


Layout & Practical Information
The section contains HTML MCQ Questions on flash videos, html5
styling layouts using css, html5 layout elements, old browser vs new
elements and search engine optimization.

Adding Flash Videos HTML5 Layout Elements


Styling HTML5 Layout Search Engine Optimization & Old Browser
with CSS vs New Elements

9. MCQ on Advance HTML


The section contains Advance HTML MCQs on google maps, plugins,
semantics and geolocation, html youtube videos responsive
overview.

HTML Responsive Overview –


1
:
HTML Responsive Overview –
HTML Google Maps – 1 2
HTML Google Maps – 2 HTML Responsive Overview –
HTML Plugins – 1 3
HTML Plugins – 2 HTML Responsive Overview –
HTML5 Semantics – 1 4
HTML5 Semantics – 2 HTML Responsive Overview –
HTML5 Semantics – 3 5
HTML5 Semantics & YouTube HTML Responsive Overview –
Videos 6
HTML5 Geolocation HTML Responsive Overview –
7
HTML Responsive Overview –
8

If you would like to learn "HTML" thoroughly, you should attempt to


work on the complete set of 1000+ MCQs - multiple choice questions
and answers mentioned above. It will immensely help anyone trying
to crack an exam or an interview.

Wish you the best in your endeavor to learn and master


HTML!

Conclusion:
Mastering HTML is crucial for aspiring web developers. Our 1000
HTML MCQs will aid in your preparation, ensuring you have a solid
understanding of both fundamental and advanced HTML concepts.

Important Links:

Best Refernce Books on HTML


CSS Multiple Choice Questions
Python Multiple Choice Questions
PHP Multiple Choice Questions
Javascript Multiple Choice Questions
Computer Science Multiple Choice Questions
:

You might also like