You are on page 1of 36

XML Quiz

MCQ: XML is application of Extensible Markup Language (XML) whereas


HTML is an application of

A. HTTP
B. FTP
C. XHTM
D. SGML

HTTP Methods Quiz

MCQ: Which method is same as GET but returns only HTTP headers and
no document body?

A. Post method
B. Put method
C. Head method
D. None

Answer

HTML Basics Quiz

MCQ: "href " attribute in HTML document is used to define

A. Paragraph
B. Heading
C. Table
D. Link Destination

Answer

HTML Images Quiz

MCQ: An image-map is an image with clickable areas, so which tag we


can use for defining an image-map?

A. <image map>
B. <map image>
C. <map>
D. <image>

Answer

HTML Links Quiz

MCQ: Anchor tag in HTML is denoted as

A. <a>
B. <anchor>
C. <ach>
D. None

MCQ: Which of following element is used for creating a separate table


footer?

A. <footer>
B. <sepfooter>
C. <tfoot>
D. None of them

Answer

HTTP Methods Quiz

MCQ: Parameters remain in browser history is an example of

A. Get method
B. Post method
C. Head method
D. Put method

Answer

HTML Links Quiz

MCQ: _blank target attribute opens a linked document in

A. new window
B. new tab
C. same window
D. Both A and B
Answer

Cascading Style Sheets Quiz

MCQ: To define a style for a special type of elements, we can add a

A. Class
B. Margin
C. Border
D. Table

Answer

HTML Local Storage Quiz

MCQ: HTML local storage object that stores data for one session is?

A. window.sessionStorage
B. window.localStorage
C. window.blockStorage
D. window.localStorage

MCQ: In HTML form <input type="text"> is used for

A. One line text


B. Block of text
C. One paragraph
D. None

Answer

HTML Classes Quiz

MCQ: HTML classes that is already defined and allow us to apply styles
on it are called as

A. Pseudo classes
B. Css classes
C. Javascript classes
D. None

Answer
XHTML HTML Quiz

MCQ: XHTML stands for?

A. Extensible HyperText Markup Language


B. Extended HyperText Markup Language
C. Extensible HighText Markup Language
D. None

Answer

HTML Responsive Quiz

MCQ: Web design that makes your web page look good on all devices is
called as?

A. Good web design


B. Interactive web design
C. Responsive web design
D. Both A and B

Answer

HTML Blocks Quiz

MCQ: Which of following is not an inline element?

A. <span>
B. <a>
C. <img>
D. <div>

MCQ: Type of tag used for inserting an image in web document is

A. <imp>
B. <img>
C. <image>
D. <src>

Answer

HTML Marquees Quiz


MCQ: Scrolling piece of text displayed either horizontally or vertically is
created by

A. <floating text> tag


B. <scrolling text>
C. <marquee> tag
D. None of them

Answer

HTML Quotation and Citation Elements Quiz

MCQ: A tag which is used for overriding current text direction e.g. Right
to left side

A. <bdo dir="rtl"> </bdo>


B. <bdo dir="ltr"> </bdo>
C. <bdo = "right to left"> </bdo>
D. None

Answer

HTML Tables Quiz

MCQ: For adding styles in HTML tables we can use properties of?

A. J-Query
B. CSS
C. Java
D. Php

Answer

HTML Plug-ins Quiz

MCQ: Plug-ins can be added to web pages with <object> tag and?

A. <source> tag
B. <link> tag
C. <embed> tag
D. None

RGB stands for


A. Red, Green, Blue
B. Red, Green, Black
C. Red, Gray, Black
D. None

Answer

HTML Elements Quiz

MCQ: Starting and ending tag of HTML document is

A. <body> </body>
B. <http> </http>
C. <html> </html>
D. None

Answer

Introduction to HTML Quiz

MCQ: A small program that can be embedded within web pages to


perform a specific functionality is called as

A. Class
B. Applet
C. Sheet
D. All of above

Answer

HTML Basics Quiz

MCQ: Visible part of HTML document lies in

A. Body Tag
B. Paragraph Tag
C. Links Tag
D. Image Tag

Answer

HTML Head Quiz


MCQ: For specifying character set, page description, keywords, authors
and other metadata which tag is used?

A. <head>
B. <title>
C. <meta>
D. <metadata>

For creating a drop-down list in HTML forms which element is suitable?

A. <list>
B. <dropdown>
C. <select>
D. All of above

Answer

HTML Semantics Quiz

MCQ: Semantic element <nav> defines

A. An article on the web page


B. Navigational links
C. Navigational forms
D. None

Answer

Cascading Style Sheets Quiz

MCQ: For applying styles on many web pages which style sheet is more
preferable?

A. Inline CSS
B. External CSS
C. Internal CSS
D. None

Answer

HTML Comments Quiz


MCQ: This <!-- Your text --> tag is used for?

A. Adding line break


B. Adding paragraph break
C. Adding Table
D. Adding Comment

Answer

HTML Canvas Quiz

MCQ: HTML <canvas> element is used to draw graphics, on fly via

A. PHP
B. JavaScript
C. J-Query
D. Applet

MCQ: In HTML you can display a color by using only

A. RGB Values
B. HEX Values
C. Gray Codes
D. Both A and B

Answer

HTML Basics Quiz

MCQ: Which tag is used to define links in HTML document?

A. <p>
B. <h1>
C. <a>
D. <img>

Answer

HTML Lists Quiz

MCQ: HTML <dl> tag defines the

A. Unordered list
B. Ordered list
C. Description list
D. Descriptive list

Answer

HTML Links Quiz

MCQ: In HTML links an unvisited link is underlined and

A. Red colored
B. Blue colored
C. Black colored
D. None

Answer

HTML Audio Quiz

MCQ: .midi extension file format is a\an

A. Video format
B. Audio format
C. Movie format
D. Graphics format

MCQ: In HTML tables space between cell content and cell border is
called

A. Cell spacing
B. Cell difference
C. Cell padding
D. All of above

Answer

HTML Media Quiz

MCQ: MPEG stands for?

A. Map Pictures Expert Group


B. Moving Pictures Expert Group
C. Magnifying Pictures Expert Group
D. None
Answer

HTML Attributes Quiz

MCQ: Attributes usually come in name/value pairs forms like:

A. name="value"
B. value= name
C. value= value
D. None

Answer

HTML Forms Quiz

MCQ: While submitting a form method attribute specifies what?

A. Get and Post method


B. Get and Set method
C. Put and Set method
D. Get and Host method

Answer

HTTP Methods Quiz

MCQ: Hypertext transfer protocol (HTTP) is designed to enable


communications between?

A. Server to server
B. Client to Client
C. Client and server
D. None

MCQ: For opening linked document in same window which target


attribute is more suitable?
A. _blank
B. _self
C. _parent
D. _top

Answer

Cascading Style Sheets Quiz

MCQ: CSS stands for?

A. Cascading Style Sheets


B. Copy Style Sheet
C. Cascading Screen Sheets
D. None

Answer

HTTP Methods Quiz

MCQ: Which method uploads a representation of a specified URI in


HTML?

A. Post method
B. Put method
C. Head method
D. Get method

Answer

HTML Semantics Quiz

MCQ: Non-semantic elements in HTML5 is?

A. <div>
B. <span>
C. <form>
D. Both A and B

Answer

HTML Styles Quiz

MCQ: <h1 style="text-align: center;"> My Web Page </h1> displays?


A. Centered align paragraph
B. Centered align Heading
C. Left aligned paragraph
D. Left aligned Heading

MCQ: HTML <br> element defines

A. Line break
B. Preformatted text
C. Paragraph
D. Both A and C

Answer

HTML Head Quiz

MCQ: For using an external style sheet in your web document which tag
is used?

A. <script>
B. <sheet>
C. <css>
D. <link>

Answer

HTML Forms Quiz

MCQ: Default method while submitting a form is

A. Put method
B. Post method
C. Set method
D. Get method

Answer

HTML Form Element Quiz

MCQ: Cols attribute in forms text area specifies what?

A. The visible width of a text area


B. The visible number of lines in a text area
C. Size of a text area
D. Size of a text field

Answer

HTML Tags Quiz

MCQ: Non breaking space is denoted by

A.
B. &nbs
C. #nbs
D. &nonbreak

MCQ: In 1989 Tim Berners-Lee invented WWW and in 1991 he invented?

A. Microsoft
B. Linux
C. HTML
D. XML

Answer

HTML Semantics Quiz

MCQ: In HTML5 how many new semantic elements were introduced?

A. 4
B. 5
C. 6
D. 8

MCQ: HTML block-level elements always starts on a


A.New line
B.Same line
C.New block
D.None
MCQ: Which of following is a new input type in HTML5?
A.Button
B.Text
C.Address
D.Date
MCQ: For controlling page's dimensions and scaling which element is
used in <meta> tag?
A.<scaling>
B.<scale>
C.<zoom>
D.<viewport>
MCQ: <p> tag defines a
A.Paragraph
B.Line
C.Link
D.Table
CSS padding property is used for?
A.Space
B.Border
C.Background color
D.Margin
MCQ: A small piece of program that can add interactivity to your website
is called as
A.Meta
B.Script
C.Marquee
D.All of above

Web application that can store data within user's browser is called as?
A.Storage
B.Server storage
C.Local Storage
D.Media Storage
MCQ: For checking a regular expression in input fields of HTML forms
which attribute is used?
A.<checker>
B.<valid input>
C.<pattern>
D.None of them

MCQ: Tags that are used to tell meaning of enclosed text (e.g. <strong>
</strong> ) these type of tags are called
A.Similar tags
B.Defined tags
C.Physical tags
D.Logical tags
MCQ: External style sheets are referred in web document through a
A.Class
B.Link/Url or path
C.Page
D.None
MCQ: Which from following is not a type of screen frames in HTML
A.iframe
B.noframe
C.frameset
D.uframe
Answer
MCQ: In HTML web sockets are not available whereas in HTML5
A.Full duplex communication channel is present
B.Still it is not available
C.No networking capability available
D.All of above
MCQ: When connection of a web page is opened to a server which event
is invoked?

On-error
A.On-message
B.On-open
C.On-running
MCQ: Which attribute is used to add video controls like play, pause, and
volume in Video
A.<autoplay>
B.<play>
C.<video controls>
D.<controls>
MCQ: For defining a client-side script e.g. JavaScript which tag is used in
HTML documents?
A.<iframe>
B.<script>
C.<java>
D.<javascript>
MCQ: There are how many ways to create multicolumn layouts in a web
document?
A.1
B.2
C.3
D.4
MCQ: There are how many types of tag for HTML headings
A.3
B.4
C.5
D.6
MCQ: Default character set in HTML 5 is
A.UTF-1
B.UTF-4
C.UTF-8
D.UTF-12
Answ

MCQ: In HTML, a color can be specified using a hexadecimal value in


form of
A.#000000
B.#0 - #255
C.#RRGGBB
D.None

MCQ: For displaying contact information in web document or in article,


we can use?
A.<address> tag
B.<article> tag
C.<contact info> tag
D.None
MCQ: Autofocus attribute is an example of
A.HTML
B.PHP
C.J-Query
D.HTML5
MCQ: Which attribute is used to declare language in HTML document?
A.<!DOCTYPE html>
B.<html = " ">
C.< a href = " ">
D.<html lang =" ">
MCQ: Which style of CSS sheets are more preferable for applying a
unique style in single web element?
A.Inline CSS
B.External CSS
C.Internal CSS
D.None
HTML is a set of
A.Markup tags
B.Markup links
C.Markup elements
D.All of above
MCQ: For using subscript in web document which tag is used?
A.<sup> </sup>
B.<sub> </sub>
C.<subscript> </subscript>
D.<superscript> </superscript>

MCQ: Window.localStorage HTML object stores data with


A.Expiration Date
B.No expiration date
C.One session
D.Both B and C
MCQ: Ismap attribute makes a special image when user click somewhere
on image
A.It blinks
B.It hides
C.It opens a hyper link
D.All of above
MCQ: There are how many ways to add CSS sheets in HTML elements?
A.3 ways
B.2 ways
C.1 way
D.a lot of ways
MCQ: All HTML documents must start with a
A.Header tag
B.Body tag
C.Title tag
D.Document type declaration
MCQ: For specifying height and width of an image which attribute is
used in image tag?
A.alt attribute
B.Height and width attribute
C.Style tag
D.Both A and C
Answer

MCQ: To display many types of map e.g. ROADMAP, SATELLITE, HYBRID,


and TERRAIN which property of googlemap is used?
A.MapOptions
B.MapTypeId
C.TypeOfMap
D.None
MCQ: <head> element is a container for?
A.HTML documents
B.HTML head tags
C.Metadata
D.None
MCQ: <input type="reset"> defines a
A.link to reset all the form values
B.Reset button
C.Reset field
D.Reset radio button
MCQ: HTML documents transmitted from web servers to web browsers
using
A.FTP
B.HTTP
C.XML
D.All of above
MCQ: "src" attribute for an image specifies what?
A.Text for image
B.Url for an image
C.Alternate image
D.Both A and B
Answer
MCQ: <fieldset> element in HTML forms is used for
A.Group of related data
B.Group of irrelevant data
C.Text field
D.None
MCQ: HTML only uses
A.Pre-specified tags
B.User- defined tags
C.Fixed tags defined by the language
D.All of above
Answer
MCQ: Which tag is used for bigger headings in HTML document?
A.<h>
B.<h1>
C.<h4>
D.<h6>
MCQ: HTML5.1 was released in
A.2010
B.2012
C.2014
D.2016
MCQ: Which tag provides data about page expiry, page author, list of
keywords, page description etc.
A.<Head>
B.<Document type>
C.<Title>
D.<Meta>

MCQ: Mailto tag is used for


A.Image
B.Email
C.Facebook
D.Twitter
MCQ: In HTML tables table data or cell is defined by
A.<th> tag
B.<tr> tag
C.<td> tag
D.<t data>
MCQ: Server-Sent Events usually denoted as?
A.SE
B.SSE
C.Server Event
D.SS-Events

HTML SVG Quiz


MCQ: Which one is resolution independent?
A.SVG
B.Canvas
C.Google Maps
D.Bitmap Graphics
MCQ: For converting Non-ASCII characters into format that can be
transmitted over Internet is called?
A.Unicoding scheme
B.URL Encoding scheme
C.URL Multicoding scheme
D.None
MCQ: Canvas draws 2D graphics, on fly whereas SVG draws 2D graphics
on
A.XML
B.XHTML
C.Screen
D.None
MCQ: Using style sheets in head section of a web document is called
A.Inline CSS
B.External CSS
C.Internal CSS
D.Both A and B
MCQ: Which are commonly used methods for request and response
between a client and server?
A.Get and Put
B.Set and Put
C.Set and Post
D.Get and Post

MCQ: If you want to create your web layout faster, than which framework
you would preferably use
A.JavaScript
B.PHP
C.Bootstrap
D.None
MCQ: This <a href="url"> Your text </a> tag is used to define a
A.Link
B.Class
C.CSS sheet
D.Both A and B
MCQ: How invented WWW?
A.Tim Berners Lee
B.Dava Raggett
C.Bill Gates
D.Linus Torvalds
MCQ: For smallest size headings which tag you most prefer to use
A.<headings>
B.<h1>
C.<h4>
D.<h6>
MCQ: Which tag is used for creating a horizontal line to break up section
in web document?
A.<line>
B.<horizontal>
C.<hl>
D.<hr>
MCQ: Choose correct HTML statement for adding a background color
A.<body bgcolor="yellow">
B.<body style="background-color : yellow;">
C.<body color="#yellow">
D.Both A and B
MCQ: In image tag " alt " attribute specifies what?
A.Alternative text
B.Alternative image
C.Link of image
D.None
MCQ: In image tag " alt " attribute specifies what?
A.Alternative text
B.Alternative image
C.Link of image
D.None
MCQ: Why <hr> tag is used in HTML page?
A.For creating table
B.For thematic break
C.For heading
D.None
MCQ: Which tag we can use for adding an emphasized text in web
document?
A.<emphasized> </emphasized>
B.<emp> </emp>
C.<em> </em>
D.<mark> </mark>
MCQ: <b> and <i> tags in HTML document are used for?
A.Big and small text
B.Bold and small text
C.Bold and italic text
D.None
In HTML, hexadecimal values each color defines intensity between?

A. 0 - 250
B. 0 - FF
C. 0 - 256
D. 0 – 16

MCQ: An unordered list in HTML document starts with a

A. <ul> tag
B. <li> tag
C. <lu> tag.
D. None
MCQ: A well-known helper plug-in for HTML is?

A. J-Query
B. PHP
C. JavaScript
D. Java Applet

MCQ: HTML is a

A. Programming language
B. Scripting language
C. Markup language
D. All of above

MCQ: For arranging your list items in same way as they were arranged in
dictionary which tag you will use?

A. <ul>
B. <ol>
C. <li>
D. <dl>

MCQ: In HTML tables table row is defined by

A. <th> tag
B. <tr> tag
C. <td> tag
D. <row> tag

MCQ: <article> element defines a complete, self-contained block of


related elements but <div> element defines?

A. A block of children elements


B. A block of different elements
C. A class of related elements
D. None
MCQ: A simply defined functions which can be called against any mouse
or keyboard is known as

A. Event handlers
B. Interrupt generator
C. Function Call
D. None

MCQ: Which character tells browser that it?s end of tag in HTML
statement?

A. <
B. >
C. \
D. /

MCQ: In HTML tables gap between two cells of same tables are known as

A. Cell spacing
B. Cell difference
C. Cell padding
D. All of above

MCQ: Server-Sent Events allows a web page to get updates from

A. Windows
B. Local Storage
C. Server
D. None

MCQ: Which inline function embeds an independent HTML document


into current document?

A. <div>
B. <span>
C. <iframe>
D. <form>

MCQ: CSS hover class is used for

A. Hovering upon using the mouse


B. Formatting
C. Styling of fonts
D. None

MCQ: <input type="datetime-local"> specifies date and time with

A. Local time
B. International time
C. No time zone
D. Local time zone

MCQ: Which tag is used for marked and highlighted text in web
document?

A. <highlight>
B. <del>
C. <mark>
D. Both A and C

MCQ: In HTML, each parameter in RGB(red, green, blue) defines intensity


of color between?

A. 0 - 90
B. 0 - 255
C. 0 - 65536
D. 0 – infinity

MCQ: For adding quotation marks in web page paragraph or in line


which tag we can use?
A. <quotation> </quotation>
B. <quo> </quo>
C. <p> </p>
D. <q> </q>

MCQ: HTML grouping tags are

A. <div> and <span>


B. <div> and <block>
C. <div> and <classes>
D. None

MCQ: An absolute file path is referred as?

A. Full path
B. Relative path
C. Direct path
D. None

MCQ: SVG stands for?

A. Screen Vector Graphics


B. Selectable Vector Graphics
C. Scale Valuable Graphics
D. Scalable Vector Graphics

MCQ: <applet> element in HTML5 is replaced with?

A. <class>
B. <form>
C. <object>
D. <frame>

MCQ: For defining default font size, color, and typeface for any part of
document which element attribute you will use
A. <fonttype>
B. <font>
C. <basefont>

MCQ: Which tag is used to define a block of text that have quotation
marks?

D. <quote>
E. <mark>
F. <blockquote>
G. None

MCQ: How can we insert Javascript in HTML?

A. Using sockets
B. Using marquee tag
C. Using script tag
D. Using style tag

MCQ: Which HTML element is used to define a multi-line input field?

A. <text>
B. <textarea>
C. <blocktext>
D. <textfields>

MCQ: To specify number intervals for numeric type input which attribute
is used?

A. Interval
B. Step
C. Limit
D. None

MCQ: In HTML tables table header is defined by


A. <th> tag
B. <tr> tag
C. <td> tag
D. <t head> tag

MCQ: SGML stands for

A. Standardized Global Markup Language


B. Social General Markup Language
C. None of them
D. Standard Generalized Markup Language

MCQ: In HTML Geolocation getCurrentPosition() method is used to

A. Return the user's position


B. Get the map of world
C. Return the only latitude
D. Return the only longitude

MCQ: HTML tags are?

A. Case sensitive
B. Not case sensitive
C. lowercase stricter
D. Uppercase stricter

MCQ: Dir, lang and xml:lang attributes are example of

A. HTML forms element


B. Internationalization attributes
C. HTML formatting attributes
D. None of them

MCQ:(document.getElementById("demo").innerHTML = "Hello!"; )
Function is an example of?
A. PHP
B. JavaScript
C. HTML5
D. None

MCQ: When we want to add many spaces in content than what element
we can use

A. Non breaking space


B. Applet
C. Marquee
D. None

MCQ: XHTML is dynamic web page whereas HTML is

A. Also a dynamic web pag


B. A static web page
C. Programming language
D. User defined language

MCQ: For playing soundtrack in background which tag is used?

A. <backgroundsound>
B. <bgsound>
C. <sound>
D. <bgtrack>

MCQ: An ordered list in HTML document starts with a

A. <ul> tag
B. <ol> tag
C. <li> tag
D. None

MCQ: Which one from following is a block level element in HTML?


A. <span>
B. <div>
C. <class>
D. Both A and B

MCQ: If you want to merge two or more rows in a table which attribute
you can use?

A. Rowmerge
B. Rowspan
C. Colmerge
D. Colspan

MCQ: For uniquely identifying an elements name which attribute is


used?

A. id
B. class
C. header
D. none

MCQ: Text inside a <pre> element tag is displayed

A. In table
B. In one line
C. In fixed width font
D. In half paragraph

MCQ: What is short form of Secure HyperText Transfer Protocol?

A. HTTP
B. HTTPS
C. SHTTP
D. Secure HTTP
MCQ: Which tag is used for defining an alternate content for users that
do not support client-side scripts?

A. <script>
B. <noscript>
C. <iframe>
D. <nonscript>

MCQ: For defining a submit button which tag is used?

A. <button>
B. <submit button>
C. <submit>
D. <action submit>

MCQ: Which language is used to create web documents?

A. PHP
B. JavaScript
C. HTML
D. J-Query

MCQ: When form data contains sensitive or personal information than


which method is more preferable?

A. Get method
B. Post method
C. Host method
D. Put method

MCQ: Tags used to tell browser that how to display text enclosed (e.g.
<b>, <big>) are called as

A. Physical tags
B. Logical tags
C. User defined tags
D. None

MCQ: Which of following is not semantic element?

A. <table>
B. <article>
C. <div>
D. <form>

MCQ: Action attribute in HTMl forms specifies that

A. Which HTTP method is used


B. Which action is going on
C. Where to submit the form
D. The auto completion of form

MCQ: Title element defines title of document at

A. Header
B. Web browser
C. Middle of the Document
D. Footer

MCQ: Next version of XHTML 1.0 is

A. HTML 1.1
B. HTML 4.01
C. HTML 3.2
D. HTML5

Answer
Answer

Answer

Answer

Answer

Answer

Answer

You might also like