HTML5/HTML Mcq Question 2021 Sample Test,Sample questions

Question:
 <input> is -

1.a format tag.

2.an empty tag.

3.All of the above

4.None of the above


Question:
 An HTML program is saved by using the ____ extension.

1..ht

2..html

3..hml

4.None of the above


Question:
 How to add a background color in HTML?

1.<marquee bg color: "red">

2.<marquee bg-color = "red">

3.<marquee bgcolor = "red">

4.<marquee color = "red">


Question:
 How to insert a background image in HTML?

1.<body background = "img.png">

2.<img background = "img.png">

3.<bg-image = "img.png">

4.None of the above


Question:
 In HTML5, which of the following tag is used to initialize the document type?

1.<Doctype HTML>

2.<Doctype html>

3.<Doctype>

4.<!DOCTYPE html>


Question:
 The tags in HTML are -

1.case-sensitive

2.in upper case

3.not case sensitive

4.in lowercase


Question:
 Which HTML tag is used to display the power in expression, i.e., (x2 - y2)?

1.<sup>

2.<sub>

3.<p>

4.None of the above


Question:
A program in HTML can be rendered and read by -

1.Web browser

2.Server

3.Interpreter

4.None of the above


Question:
How to create a checkbox in HTML?

1.<input type = "checkbox">

2.<input type = "button">

3.<checkbox>

4.<input type = "check">


Question:
How to create a hyperlink in HTML?

1.<a href = "www.javatpoint.com"> javaTpoint.com </a>

2.<a url = "www.javatpoint.com" javaTpoint.com /a>

3.<a link = "www.javatpoint.com"> javaTpoint.com </a>

4.<a> www.javatpoint.com <javaTpoint.com /a>


Question:
How to create an ordered list (a list with the list items in numbers) in HTML?

1.<ul>

2.<ol>

3.<li>

4.<i>


Question:
How to create an unordered list (a list with the list items in bullets) in HTML?

1.<ul>

2.<ol>

3.<li>

4.<i>


Question:
How to insert an image in HTML?

1.<img href = "jtp.png" />

2.<img url = "jtp.png" />

3.<img link = "jtp.png" />

4.<img src = "jtp.png" />


Question:
HTML stands for -

1.HighText Machine Language

2.HyperText and links Markup Language

3.HyperText Markup Language

4.None of these


Question:
HTML tags are enclosed in-

1.# and #

2.{ and }

3.! and ?

4.< and >


Question:
The <hr> tag in HTML is used for -

1.new line

2.vertical ruler

3.new paragraph

4.horizontal ruler


Question:
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, Title, Body


Question:
What are the types of unordered or bulleted list in HTML?

1.disc, square, triangle

2.polygon, triangle, circle

3.disc, circle, square

4.All of the above


Question:
Which is the correct way to comment out something in HTML?

1.Using ## and #

2.Using <!-- and -->

3.Using </-- and -/->

4.Using <!-- and -!>


Question:
Which of the following are the attributes of the

tag?

1.method

2.action

3.Both (a) & (b)

4.None of the above


Question:
Which of the following attribute is used to provide a unique name to an element?

1.class

2.id

3.type

4.None of the above


Question:
Which of the following element is responsible for making the text bold in HTML?

1.<pre>

2.<a>

3.<b>

4.<br>


Question:
Which of the following element is responsible for making the text italic in HTML?

1.<i>

2.<italic>

3.<it>

4.<pre>


Question:
Which of the following HTML attribute is used to define inline styles?

1.style

2.type

3.class

4.None of the above


Question:
Which of the following HTML tag is the special formatting tag?

1.<p>

2.<b>

3.<pre>

4.None of the above


Question:
Which of the following HTML tag is used to display the text with scrolling effect?

1.<marquee>

2.<scroll>

3.<div>

4.None of the above


Question:
Which of the following is the container for <tr>, <th>, and <td> ?

1.<data>

2.<table>

3.<group>

4.All of the above


Question:
Which of the following is the correct way to change the font face in HTML?

1.<font name = "Calibri"> ……… </font>

2.<font face = "Calibri"> ……… </font>

3.<font = "Calibri"> ……… </font>

4.None of the above


Question:
Which of the following is the correct way to create a list using the lowercase letters?

1.<ol alpha = "a" >

2.<ol type = "a">

3.<ol letter = "a">

4.None of the above


Question:
Which of the following is the correct way to send mail in HTML?

1.<a href = "mailto: xy@y">

2.<a href = "xy@y">

3.<mail xy@y</mail>

4.None of the above


Question:
Which of the following is the correct way to start an ordered list with the count of numeric value 4?

1.<ol type = "1" initial = "4">

2.<ol type = "1" begin = "4">

3.<ol type = "1" num = "4">

4.<ol type = "1" start = "4">


Question:
Which of the following is the paragraph tag in HTML?

1.<p>

2.<b>

3.<pre>

4.None of the above


Question:
Which of the following is the root tag of the HTML document?

1.<body>

2.<head>

3.<title>

4.<html>


Question:
Which of the following tag is used for inserting the largest heading in HTML?

1.<h3>

2.<h1>

3.<h5>

4.<h6>


Question:
Which of the following tag is used to add rows in the table?

1.<td> and </td>

2.<th> and </th>

3.<tr> and </tr>

4.None of the above


Question:
Which of the following tag is used to create a combo box (or drop-down box)?

1.<list>

2.<select>

3.<input type = "dropdown">

4.<ul>


Question:
Which of the following tag is used to define options in a drop-down selection list?

1.<select>

2.<list>

3.<dropdown>

4.<option>


Question:
Which of the following tag is used to insert a line-break in HTML?

1.<br>

2.<a>

3.<pre>

4.<b>


Question:
Which of the following tag is used to make the underlined text?

1.<i>

2.<ul>

3.<u>

4.<pre>


More MCQS

  1. HTML Mcq Question 2021
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!