Top HTML MCQ with Answers

HTML MCQ:



Q. HTML Full form:

a. HighText Machine Language

b. HyperText and links Markup Language

  1. Hyper Text Marquee Language

  2. HyperText Markup Language

Answer: d

Q. The correct sequence of HTML tags for starting a webpage is :

  1. Head, Title, HTML, body

  2. HTML, Body, Title, Head

  3. HTML, Head, Title, Body

  4. HTML, Head, Body, Title

Answer: c


Q. What is HTML?

a. HTML describes the structure of a webpage of website

b. HTML is markup language and generally 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 Above

Answer: d

Q. HTML is developed by

a. Lary Page

b. Tim Berners-Lee

c. Brendan Eich

d. Sergey Brin

Answer: b

Q. Which tag is used for the text bold in HTML?


a. <pre>

b. <a>

c. <b>

d. <br>

Answer: c

Q. Which tag is used for inserting the smallest heading in HTML?

a. <h3>

b. <h1>

c. <h5>

d. <h6>

Answer: d

Q. The correct syntax of doctype in HTML5?

a. </doctype html>

b. <doctype html>

c. <doctype html!>

d. <!doctype html>

Answer: d.

Q. Which tag is used to insert a line-break in HTML?

a. <br>

b. <break>

c. <hr>

d. <b>

Answer: a.

Q. Which tag is used for an ordered list in HTML?

a. <ul>

b. <ol>

c. <li>

d. <i>

Answer: b.

Q. Which symbol is used to represent the closing of a tag in HTML?


a. \

b. //

c. /

d. ??

Answer: c

Q. Which is used to read an HTML page and render it?

a. Web server

b. domain

c. Web browser

d. Web hosting

Answer: c

Q. Which tag is used for text italic in HTML?

a. <i>

b. <italic>

c. <it>

d. <italik>

Answer: a



Q. Which is not a difference between HTML and XHTML?

a. Charset is “text/html” in both html and xhtml.

b. Tags and attributes are non case sensitive in HTML but not in XHTML

c. Special characters must be escaped using character entities in XHTML unlike HTML

d. None of Above

Answer: a

Q. What is image tag in HTML?

a. <img href = "tkd.png" />

b. <img url = "tkd.png" />

c. <img link = "tkd.png" />

d. <img src = "tkd.png" />

Answer: d

Q. What is code for insert a background color in HTML?


a. <marquee bg.color: "green">

b. <marquee bg-color = "green">

c. <marquee bgcolor = "green">

d. <marquee color = "green">

Answer: c

Q. Which tag has metadata of HTML?

a. head tag

b. img tag

c. html tag

d. body tag

Answer: a

Q. Which tag is used to get highlighted text in HTML5?

a. <highlight>

b. <mark>

c. <highlighted>

d. <highlights>

Answer: b

Q. Which tag is not a HTML5?

a. <track>

b. <video>

c. <slider>

d. <header>

Answer: c

Q. Comments in HTML?

a. </…….>

b. <!……>

c. </……/>

d. <…….!>

Answer: b



Q. <input> tag is ----


a. A format tag.

b. An empty tag.

c. Both a and b

d. None

Answer: b

Q. The code to create a checkbox in HTML?

a. <input type = "checkbox">

b. <input type = "box">

c. <input =”checkbox”>

d. <input type = "check">

Answer: a

Q. Which tag is used to drop-down selection list in HTML?

a. <select>

b. <list>

c. <dropdown>

d. <option>

Answer: d

Q. Which tag is used to video in HTML5?

a. <video>

b. <movie>

c. <audio>

d. <media>

Answer: a

Q. Which is not below element with the HTML table layout?

a. alignment

b. spanning

c. size

d. color

Answer: d

Q. Which element is used for style in HTML5?

a. CSS

b. design

c. JavaScript

d. Java

Answer: a



Q. HTML is a subset of

a. SGMD

b. SGML

c. SGMG

d. None of the them

Answer: b

Q. Which code to create a hyperlink in HTML?

a. <a link = “www.careerbodh.in”> Career Bodh Sansthan </a>

b. <a> www. www.careerbodh.in/Career Bodh Sansthan </a>

c. <a href = “www. www.careerbodh.in”> Career Bodh Sansthan </a>

d. <a url = “www. www.careerbodh.in”> Career Bodh Sansthan</a>

Answer: c

Q. ALL HTML tags are enclosed in ---

a. ( and )

b. [ and ]

c. < and >

d. { and }

Answer: c

Q. Which tag is used to add rows in the table?

a. <td> and </td>

b. <th> and </th>

c. <tr> and </tr>

d. <tr> and <tr>

Answer: c

Q. Which code will make an image clickable in HTML?


a. <a href="https://www.careerbodh.in">Home Page</a>

b. <img src="logo.jpg"><a href="https://www. careerbodh.in ">Home Page</a></img>

c. <a href="https://www. careerbodh.in ">Home Page</a><img src="logo.jpg" >

d. <a href="https://www. careerbodh.in "><img src="logo.jpg" /></a>

Answer: d





33 views0 comments

Recent Posts

See All

Group Flights Gone are the days when people like to fly all along. As the Standard of living is increasing by leap and bond, people to show their influence or to impression many offers to take on a gr

CSS MCQ Q 1. What is CSS? a. CSS is a style sheet language b. CSS stands for Cascading style sheet. c. CSS is used to style the HTML documents d. All of the mentioned Answer: d Q

Popup Box in Java Script There are three types popup box in java script which are below: Alert Dialog Box Confirmation Dialog Box Prompt Dialog Box Alert Dialog Box: Alert box is generally used for gi