-
What does HTML stand for?
a) Hyper Trainer Marking Language
b) Hyper Text Marketing Language
c) Hyper Text Markup Language
d) High Text Machine Language
Answer: c) Hyper Text Markup Language -
Who is the inventor of HTML?
a) Dennis Ritchie
b) Tim Berners-Lee
c) James Gosling
d) Brendan Eich
Answer: b) Tim Berners-Lee -
Which of the following is the correct extension of an HTML file?
a) .htm
b) .html
c) Both a and b
d) .xml
Answer: c) Both a and b -
What is the purpose of the
<html>tag?
a) Displays content
b) Defines HTML document
c) Adds links
d) Adds images
Answer: b) Defines HTML document -
Which tag is used to define the main heading in HTML?
a)<head>
b)<h1>
c)<heading>
d)<title>
Answer: b)<h1> -
What tag is used to display a paragraph in HTML?
a)<para>
b)<pg>
c)<p>
d)<text>
Answer: c)<p> -
Which tag is used to insert a line break in HTML?
a)<break>
b)<br>
c)<lb>
d)<line>
Answer: b)<br> -
Which tag is used to make text bold in HTML?
a)<bold>
b)<b>
c)<strong>
d) Both b and c
Answer: d) Both b and c -
What does the
<i>tag do in HTML?
a) Inserts image
b) Italicizes text
c) Inputs value
d) Makes text bold
Answer: b) Italicizes text -
Which tag is used to underline text in HTML?
a)<ul>
b)<underline>
c)<u>
d)<line>
Answer: c)<u>
-
Which tag is used to define the title of a document?
a)<heading>
b)<title>
c)<head>
d)<meta>
Answer: b)<title> -
The
<hr>tag is used to:
a) Create horizontal line
b) Highlight text
c) Draw boxes
d) Display images
Answer: a) Create horizontal line -
What is the default alignment of text in HTML?
a) Center
b) Left
c) Right
d) Justify
Answer: b) Left -
Which tag is used to insert a hyperlink?
a)<link>
b)<href>
c)<a>
d)<url>
Answer: c)<a> -
Which tag is used to insert an image?
a)<img>
b)<image>
c)<pic>
d)<src>
Answer: a)<img> -
Which attribute is used to specify the URL of an image?
a) href
b) src
c) link
d) url
Answer: b) src -
Which tag is used for superscript text?
a)<sp>
b)<super>
c)<sup>
d)<s>
Answer: c)<sup> -
Which tag is used for subscript text?
a)<sub>
b)<sb>
c)<low>
d)<down>
Answer: a)<sub> -
Which tag is used to strike through text?
a)<strike>
b)<s>
c)<del>
d) All of the above
Answer: d) All of the above -
Which tag contains meta-information about the HTML document?
a)<meta>
b)<head>
c)<body>
d)<info>
Answer: b)<head>
-
Which element is used to group content in a block-level container?
a)<div>
b)<span>
c)<block>
d)<group>
Answer: a)<div> -
Which tag is used to group inline elements?
a)<div>
b)<section>
c)<span>
d)<p>
Answer: c)<span> -
Which attribute specifies the font size in older HTML?
a) font-size
b) size
c) text-size
d) fontsize
Answer: b) size -
What tag was used in older HTML to define font?
a)<font>
b)<text>
c)<style>
d)<type>
Answer: a)<font> -
Which tag defines preformatted text?
a)<text>
b)<pre>
c)<p>
d)<code>
Answer: b)<pre> -
Which element is used to show computer code?
a)<code>
b)<script>
c)<text>
d)<keyboard>
Answer: a)<code> -
Which tag makes text appear in monospaced font?
a)<pre>
b)<tt>
c)<code>
d) All of the above
Answer: d) All of the above -
Which tag is used for inserting comments in HTML?
a)<!-- comment -->
b)// comment
c)/* comment */
d)# comment
Answer: a)<!-- comment --> -
What does
<em>stand for?
a) Emphasized text
b) Email link
c) Empty element
d) Embedded link
Answer: a) Emphasized text -
Which tag is used to define emphasized text?
a)<italic>
b)<em>
c)<highlight>
d)<important>
Answer: b)<em>
-
Which tag indicates strong importance?
a)<important>
b)<strong>
c)<bold>
d)<imp>
Answer: b)<strong> -
Which HTML tag is used to define a line break?
a)<lb>
b)<br>
c)<break>
d)<nl>
Answer: b)<br> -
What tag is used for short quotations?
a)<q>
b)<blockquote>
c)<quote>
d)<qt>
Answer: a)<q> -
What is the purpose of the
<blockquote>tag?
a) Display block-level quotes
b) Display code blocks
c) Display tables
d) Display forms
Answer: a) Display block-level quotes -
Which HTML tag specifies the main content area?
a)<main>
b)<body>
c)<section>
d)<content>
Answer: a)<main> -
What tag is used for highlighting text in HTML5?
a)<highlight>
b)<mark>
c)<strong>
d)<color>
Answer: b)<mark> -
Which tag creates a tooltip on hover?
a) title
b) tooltip
c) hover
d) alt
Answer: a) title -
What tag is used to define an abbreviation in HTML?
a)<abbr>
b)<short>
c)<abbrv>
d)<define>
Answer: a)<abbr> -
Which attribute is used with
<abbr>to show full form?
a) info
b) title
c) name
d) full
Answer: b) title -
Which tag is used to display deleted text?
a)<del>
b)<strike>
c)<remove>
d)<s>
Answer: a)<del>
-
Which tag defines inserted text?
a)<ins>
b)<add>
c)<insert>
d)<i>
Answer: a)<ins> -
What is the correct structure of an HTML document?
a) html > head > body
b) head > html > body
c) body > head > html
d) html > body > head
Answer: a) html > head > body -
What does the
<head>tag contain?
a) Visible content
b) Metadata and links
c) Image and video
d) Tables and forms
Answer: b) Metadata and links -
Which tag defines the body of the document?
a)<document>
b)<page>
c)<body>
d)<main>
Answer: c)<body> -
Which HTML version introduced semantic tags like
<main>,<mark>,<article>?
a) HTML 3.2
b) HTML 4.01
c) HTML5
d) XHTML
Answer: c) HTML5 -
Which tag is used to apply inline style in HTML?
a)<style>
b) style attribute
c)<css>
d)<format>
Answer: b) style attribute -
What attribute is used to change font color?
a) font
b) color
c) style
d) text
Answer: c) style -
What tag should be used to include CSS in HTML?
a)<style>
b)<css>
c)<format>
d)<link>
Answer: a)<style> -
Which tag is used to link an external stylesheet?
a)<style>
b)<link>
c)<css>
d)<script>
Answer: b)<link> -
Which HTML attribute specifies the font face in old HTML?
a) face
b) font
c) style
d) type
Answer: a) face
