HTML MCQ (Mulitple Choice Questions and Answers)
-
What is HTML?
HTML describes the structure of a webpage
HTML is the standard markup language mainly used to create web pages
HTML consists of a set of elements that helps the browser how to view the content
All of the mentioned
-
Who is the father of HTML?
Rasmus Lerdorf
Tim Berners-Lee
Brendan Eich
Sergey Brin
-
HTML stands for __________
HyperText Markup Language
HyperText Machine Language
HyperText Marking Language
HyperText Marking Language
-
What is the correct syntax of doctype in HTML5?
</doctype html>
<doctype html>
</doctype html/>
<!doctype html>
-
Which of the following is used to read an HTML page and render it?
Web server
Web network
Web browser
Web matrix
-
How do we write comments in HTML?
</…….>
<!--……-->
</……/>
<…….!>
-
Which of the following elements in HTML5 defines video or movie content?
<video>
<movie>
<audio>
<media>
-
URL is a
user’s address
an attribute
source code
web address
-
404 HTTP error is generated due to
on removing the newline character
missing JavaScript file
any missing file
slow loading of the webpage
-
Which of the following is not the element associated with the HTML table layout?
alignment
color
size
spanning
-
Which of the following is used for styling HTML layout?
CSS
PHP
JavaScript
jQuery
-
Which HTML tag is used for making character appearance bold?
<u>text</u>
<b>text</b>
<i>text</i>
<s>text</s>
-
Which is the correct syntax to insert an image?
<img url="sample.jpg" />
<img alt="sample.jpg" />
<img src="sample.jpg" />
<img link="sample.jpg" />
-
Which character is used to represent when a tag is closed in HTML?
#
!
/
\
-
Among the following, which is the HTML paragraph tag?
<p>
<pre>
<a>
<para>
-
In HTML, which attribute is used to create a link that opens in a new window tab?
src="_blank"
alt="_blank"
target="_self"
target="_blank"
-
Which HTML element is used for short quote?
<em>
<abbr>
<q>
<blockquote>
-
Which of the following HTML tag is used to create an unordered list?
<ol>
<ul>
<li>
<ll>
-
Which HTML element is used for abbreviation or acronym?
<abbr>
<blockquote>
<q>
<hr>
-
Which of the following HTML tag is used to add a row in a table?
<th>
<td>
<tr>
<tt>
-
What is the work of <address> element in HTML5?
contains IP address
contains home address
contains url
contains contact details for author
-
Which of the following tag is used to create a text area in HTML Form?
<textarea> </textarea>
<text> </text>
<input type="text" />
<input type="textarea" />
-
To show deleted text, which HTML element is used?
<del>
<em>
<ins>
<abbr>
-
Which tag is used to create a dropdown in HTML Form?
<input>
<select>
<textarea>
<add>
-
Which tag is used to create a numbered list in HTML?
<ol>
<ul>
<li>
<ll>
-
How to create a checkbox in HTML Form?
<input type="text">
<input type="textarea">
<input type="checkbox">
<input type="button">
-
Which attribute is not essential under <iframe>?
frameborder
width
height
src
-
Which works similar to <b> element?
<blockquote>
<strong>
<em>
<i>
-
which html tag is used for creating a base value (H2O)
<ul>
<br>
<sub>
<sup>
-
Which tag is used to underline the text in HTML?
<p>
<u>
<ul>
<i>
-
Which HTML tag will be used for raising number to a power?
<ul>
<br>
<sub>
<sup>
-
In which part of the HTML metadata is contained?
head tag
title tag
body tag
html tag
-
Which element is used to get highlighted text in HTML5?
<u>
<mark>
<highlight>
<em>
-
Which of the following is not a HTML5 tag?
<track>
<video>
<slider>
<source>
-
Which tag is used for list items?
<ol>
<ul>
<li>
<dl>
-
Which element contains definition?
<ll>
<dl>
<dt>
<li>
-
Which of the following can't be the value of list-style-type?
square
circle
ellipse
disc
-
Which attribute is only used with <ol>?
value
type
compact
start
-
Which element is restricted to inline content?
<dt>
<dd>
<dl>
<ul>
-
Which character is used to differentiating between choices to list items?
‘|’
‘<’
‘#’
‘-’
-
Which HTML element is used for YouTube videos?
<samp>
<small>
<frame>
<iframe>
-
Which of the following HTML element is used for canvas graphics?
<paint>
<css>
<canvas>
<gar>
-
Which element is known as HTML plaintext element?
<spacer>
<noembed>
<shadow>
<plaintext>
-
Which of the following tag is used for inserting the largest heading in HTML?
<h1>
<h2>
<h3>
<h4>
-
Which of the following extension is used to save an HTML file?
.h
.ht
.htl
.html
-
Which tag is used to create a blank line in HTML?
<b>
<br>
<a>
<hr>
-
Which HTML tag is used to convert the plain text into italic format?
<b>
<q>
<i>
<a>
-
What is the use of <hr/> tag in HTML?
For making content appearance italics
To create vertical rule between sections
To create a line break
To create horizontal rule between sections
-
Target attribute cannot have?
_blank
_self
_parent
_color
-
Which of the following opens linked document in full body?
_blank
_top
_parent
_self
-
Which attribute is used to link the bookmark?
href
id
target
src
-
What is used for specifying an email to be sent?
mailto:
target
id
href
-
Which of the following is not the parameter for email link?
body
bcc
cc
#
-
Which element defines preformatted text?
<p>
<pre>
<ins>
<href>
-
Which element is used for creating links?
<a>
<b>
<li>
<p>
-
What is the color of an unvisited link?
red
green
blue
orange
-
Which one of the following is not the value of the target attribute?
_blank
_top
_self
_empty
-
Each cell of the table can be represented by using
<tr>
<th>
<td>
<dd>
-
For table heading we can use
<td>
<tr>
<th>
<tbody>
-
Headings of table lies inside
<thead>
<tbody>
<td>
<tfoot>
-
For adding caption to the table we use
<caption>
<td>
<th>
<tbody>
-
border-spacing is given in
pixels
inch
cm
mm
-
Borders can't be applied on
<th>
<td>
<tr>
<thead>
-
Which of the following does not specify a column width?
Fixed
Percentage
Proportional
Pixels
-
Which of the following is not an attribute of a table?
cellspacing
cellpadding
colspan
target
-
Which of the following is not the value for frame attribute?
above
void
none
box
-
valign attribute does not take the value
justify
baseline
middle
bottom
-
The correct sequence of HTML tags for starting a webpage is
<head>, <title>, <html>, <body>
<html>, <body>, <title>, <head>
<html>, <head>, <title>, <body>
<html>, <head>, <title>, <body>
-
How to add a background color in HTML?
<body bg color: "red">
<body bg-color = "red">
<body bgcolor = "red">
<body color = "red">
-
HTML tags are enclosed in
#html#
{html}
!html!
<html>
-
asasas
#include<stdio.h> void main() { char ch='A'; if(ch == 65){ printf(" Hi"); }else{ printf(" Hello"); } }
1