TestMCQ
Home
HTML
Css
Javascript
html mcq basic questions for beginners
(1) How many heading tags are there in HTML?
5
3
2
6
(2) Which is the smallest heading tag in HTML?
h1
h3
h5
h6
(3) What is the use of the anchor tag?
To add links in a webpage
To create lists
To create forms
None of the above
(4) Which tag is correct to create a link in a webpage?
<a href="gmail.com">gmail.com<a>
<a "gmail"=href>gmail.com<a>
<a>gmail.com</a>
None of these
(5) What is the use of the <img> tag?
To embed video in a webpage
To embed audio
To embed an image
All of these
(6) When we use the <ul> tag, what type of list do we get?
Ordered list
Unordered list
Boat A and B
None of these
(7) What will be the output of this code: <ul><li>item 1</li><li>item 2<li>item 3</li></ul>
Ordered list will appear
Unordered list will appear
Ordered list with numbers will appear
Unordered list with bullets will appear
(8) Which tag is used to create rows in a table?
<table>
<tr>
<th>
<td>
(9) What is the use of the rowspan attribute?
To join a column
To span a cell across multiple rows
To span a cell across multiple columns
To change the size of a cell
(10) What is the function of the <strong> tag?
To make the text bold
To hide the text
To darken the text
None of these
(11) Which tag do we use to take user input?
<input>
<textarea>
<select>
All of these
(12) Which tag is used to give a title to a webpage?
Heading tag
Title tag
Meta tag
Link tag
(13) We have added the video tag to the website, now we want to add a thumbnail. Which tag is correct for this?
<video thumbnail="image.jpg">
<video poster="image.jpg">
<video image="image.jpg">
<video thumbnail-image="image.jpg">
(14) What is <div>?
An HTML tag that contains inline content.
An HTML tag that contains block-level content.
A CSS property that controls the size.
A JavaScript function that updates the DOM.
(15) Where does the title tag go in an HTML document?
Head
Body
It should be placed in both
None of these
(16) What should be the file extension to save an HTML file?
.css
.js
.html
.xl
(17) How can we make the entire webpage background black without using CSS?
background-color="black"
style="background-color: black;"
bgcolor="black"
background="black"
(18) When was HTML5 launched?
2010
2014
2016
2018
(19) What is the full form of HTML?
Hyper Text Markup Language
Hyper Transfer Markup Language
Home Tool Markup Language
High Text Markup Language
(20) Which tag does an HTML document start with?
<html>
<head>
<body>
<header>
Submit