Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML BASIC Quiz

Total questions: 55

Worksheet time: 56mins

Name
Class
Date
1.

What is the first thing we have to write in the code

a)

<!Doctype html>

b)
html
c)

<p>`

d)

<head>

2.
What does HTML stand for?
a)
Hypertext Making Language
b)
Hyper Transfer Markup Language
c)
Hypertext Markup Language
d)
Hyper Transfer Making Language
3.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
4.
<p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
5.

What does this tag stand for? <b>

a)

bright

b)

big

c)

beautiful

d)

bold

6.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
7.
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
a)
Search engines
b)
Websites
c)
Web Browsers
d)
Text editors
8.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
9.
CSS stands for?
a)
Closed Source Style
b)
Crucial Style Sheets
c)
Cascading Style Sheets
d)
Corresponding Static Style
10.

An ordered list begins with______ and ends with_________

a)

<ol>and</ul>

b)

<ol>and</ol>

c)

<ol> and </al>

d)

<al> and </al>

11.

The <tr> tag is used to define a

a)

coloum

b)

table

c)

data

d)

row

12.

<TABLE>

a)

USED TO DEFINE A TABLE ROW

b)

USED TO DEFINE A TABLE COLUMN

c)

USED TO DEFINE A TABLE CELL

d)

USED TO DEFINE A TABLE

13.

ANCHOR TAG

a)

<A HREF>

b)

<HREF>

c)

<A>

d)

</AHREF>

14.

TAG OF HORIZANTAL RULER

a)

<H>

b)

</H>

c)

<HR>

d)

</HR>

15.

SYMBOL OF CLOSING TAG

a)

=

b)

<>

c)

/

d)

\

16.

HTML5 documents may contains a ___________ element, which is used to set the header section of a document.

a)

A. header

b)

B. footer

c)

C. section

d)

D. none of the mentioned

17.

The correct sequence of HTML tags for starting a webpage is

a)

A.Head, Title, HTML, body

b)

B. HTML, Body, Title, Head

c)

C. HTML, Head, Body,Title

d)

D. HTML, Head, Title, Body

18.

To create HTML page, you need

a)

A. Web browser

b)

B. Text editor

c)

C. Both A & B

d)

D. None of the above

19.

The stylesheet is used to

a)

code the css page.

b)

link css to the html page.

c)

add css to notepad++

d)

link java script to the html page.

20.

What is the proper CSS format for background color?

a)

back-ground color:orange:

b)

backgroundcolor-orange;

c)

background:color:orange;

d)

background-color:orange;

21.

What is the proper code for an unordered list?

a)

ul

b)

ol

c)

il

d)

al

22.

Every html page is required to have a linked CSS page.

a)

True

b)

False

23.

Comments in coding is used to help

a)

the programmer

b)

anyone viewing the website

c)

the editor of the code

d)

the reader of the code

24.

Which of the following is the correct CSS link tag?

a)

<link rel="styles" href="stylesheet.css">

b)

<link href="stylesheet">

c)

<link rel="stylesheet" src="styles.css">

d)

<link rel="stylesheet" href="styles.css">

25.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
26.

While building your webpage, you want to apply inline styles to a specific text element. Which HTML attribute should you use?

a)

style

b)

class

c)

id

d)

format

27.
What is the purpose of HTML
a)
To make a formatted document
b)
To make a webpage
c)
To edit photos
d)
To make a creative slide
28.

Which of these is an advantage of CSS?

a)

Good control over the presentation.

b)

Saves time on maintaining the html document.

c)

Makes the web site look less cluttered.

d)

All of the above

29.

HTML document is saved as _____________ extension

a)

.css

b)

.html

c)

.xhtml

d)

.js

30.

How to add a comment in HTML?

a)

<!-- --!>

b)

<!-- -->

c)

//

d)

<-- -->

31.

How do we create a bulleted list?

a)

<li>

b)

<ul>

c)

<list>

d)

<bl>

32.

What CSS property is used to set the font family for text in an HTML element?

a)

font-family

b)

font-style

c)

fontfamily

d)

style-family

33.

Where to use <style> tag in html?

a)

body

b)

head

c)

both body and head

d)

everything

34.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>

35.

How do you change the font color with CSS?

a)

font-color: green;

b)

color: green;

c)

change-font-color: green;

d)

fontcolor=green;

36.

In CSS, what is the difference between an ID and a class selector?

a)

IDs are for styling multiple elements, while classes are for single elements.

b)

IDs are for single elements, while classes are for styling multiple elements.

c)

IDs and classes can be used interchangeably.

d)

IDs and classes have no difference in CSS.

37.

Which is the code to start putting in a drop down box?

a)

<select id="choices">

b)

<selection id="choices">

c)

<dropdown id="choices">

d)

<drop id="choices">

38.

To put in a larger comment box you would use which tag?

a)

<input type="comment" id="comments"/>

b)

<input type="textarea" id="comments"/>

c)

<textarea id="comments"></textarea>

d)

<textarea id="comments" />

39.

Checkboxes are used when more than one option is required to be selected.

a)

TRUE

b)

FALSE

40.

radio buttons are used when more than one option is required to be selected.

a)

TRUE

b)

FALSE

41.

Which input type is used for password input in Form?

a)

secret

b)

password

42.

What HTML input type is used to create this password field?

a)

<input type="text">

b)

<input type="submit">

c)

<input type="password">

d)

<input type="radio">

43.

TRUE or FALSE


The id attribute of the <input> element should always be equal to the for attribute of the <label> element.

a)
TRUE
b)

False

44.

The attribute is set to checkbox by which tag

a)

<input> tag

b)

<textarea> tag

45.

What form elements are used in creating this text field?

a)

<select> and <option>

b)

<label> and <input>

c)

<textarea> and <input>

d)

<select> and <input>

46.

Which is the apt input type if user need to select the gender

a)

check box

b)

drop down list

c)

text

d)

radio button

47.

A form is gettting user details which is the correct input to retrieve the email address

a)

password

b)

text

c)

email

d)

numbers

48.

Which attribute tells that either checkboxes or radiobutton belong to same group of information?

a)

id

b)

name

c)

value

d)

none of them

49.

Which element is used to create drop down list

a)

input

b)

select

c)

dropdown

d)

radio

50.

Ryan wants to give his users an option to upload an image in the form.

Which of the following options should he use

a)

<img id="image"/>

b)

<input type="file" id="img"/>

c)

<image id="image"/>

d)

<file id="image"/>

51.

Where is pattern attribute is used in whichj type of input

a)

checkbox

b)

email

c)

file

d)

tel

52.

which attributes in input-number lets youdefine the least and the most number you can enter in the field?

a)

minimum and maximun

b)

min and max

c)

minn-maxim

d)

minimum only

53.

The elements used to group a particular type of information on the form is _____ and to label the groups name we use ________with it

a)

text , list

b)

fieldset,

legend

c)

legend,

fieldset

d)

none of the above

54.

In a <textarea> to mention the width and height we use attributes

a)

rows and columns

b)

height and width

c)

length and breadth

d)

rows and cols

55.

Something that provide additional information about the HTML elemens is called__________

a)

id

b)

attribute

c)

name

d)

tag