wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML CSS Javascript

Total questions: 52

Worksheet time: 25mins

Name
Class
Date
1.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
2.
Which of the following is the largest heading? 
a)
h2
b)
h3
c)
h4
d)
h6
3.
These simple, easy-to-use programs allow you to enter, edit, save, and print text.
a)
text editor
b)
web browser
c)
domain name
d)
search engine
4.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
5.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
6.
Which is the correct way of defining an HTML5 document?
a)
<!DOCTYPE html>
b)
<!DOCTYPE HTML5>
c)
<!DOCTYPE html "PUBLIC">
d)
<DOCTYPE html>
7.
What is the correct HTML for creating a hyperlink?
a)
<a href="http://www.w3schools.com">W3Schools</a>
b)
<a url="http://www.w3schools.com">W3Schools.com</a>
c)
<a>http://www.w3schools.com</a>
d)
<a name="http://www.w3schools.com">W3Schools.com</a>
8.
Defines a paragraph
a)
<pr>
b)
<p>
c)
<para>
d)
<par>
9.
<a>
a)
Defines an article tag
b)
Defines an HTML link
c)
Defines the link destination 
d)
Defines the area
10.
In HTML, a color can be specified by using what?
a)
Colour name
b)
RGB value
c)
HEX value
d)
All of these
11.
HTML5 incorporates three kinds of code: HTML, CSS and Javascript. Which of these provides the structure to a webpage?
a)
Javascript
b)
HTML
c)
CSS
d)
None
12.
HTML attributes always appear where?
a)
In the opening tag
b)
In the closing tag
c)
Between the tags
d)
After the closing tag
13.
Web Standards are decided on by who?
a)
Microsoft
b)
Apple
c)
W3C
d)
Google
14.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
15.
Which character is used to indicate an end tag?
a)
*
b)
<
c)
/
d)
^
16.
Which is the correct HTML element for underlining text?
a)
<ul>
b)
<uline>
c)
<u>
d)
<under>
17.

Which of these is a loop?

a)

if(x<10)

b)

while(x<10)

c)

var x=10;

d)

text(x,10;10)

18.

When we are done with a line what do we put at the end?

a)

a colon :

b)

a semi-colon ;

c)

a period .

d)

a quotation mark "

19.

What is a style sheet?

a)

A style sheet is used to build a consistent, transportable, and well-designed style template.

b)

To create a multicolor text on a web page

c)

It is used to define a container for navigation links

d)

It is used to define content aside from the content

20.

What does a closing tag look like?

a)

< >

b)

<\ >

c)

</ >

d)

<< >>

21.

Which tag would you use for an ordered list?

a)

<ol>

b)

<ul>

c)

<li>

d)

None of the above

22.

Which tag would you use to insert a image?

a)

<marquee>

b)

< a href>

c)

<br>

d)

<img src>

23.

JavaScript is ______ Side Scripting Language.

a)

JSP

b)

Servlet

c)

Server

d)

Browser

24.

Javascript is _________ language.

a)

Programming

b)

Scripting

c)

Application

d)

applet

25.

JavaScript is designed for following purpose -

a)

To Style HTML Pages

b)

To Perform Server Side Scripting Opertion

c)

To add interactivity to HTML Pages.

d)

To Execute Query Related to DB on Server

26.

JavaScript is can be written -

a)

directly into JS file and included into HTML

b)

directly into HTML pages

c)

directly on the Server Script

d)

None of these

27.

JavaScript is an ________ language.

a)

compiled

b)

interpreted

28.

JavaScript Code is written inside file having extension __________.

a)

.jsc

b)

.jvs

c)

.js

d)

.javascript

29.

Why JavaScript is called as Lightweight Programming Language ?

a)

because JS can provide programming functionality inside but up to certain extend.

b)

because JS is client side scripting

c)

because JS is available free of cost.

d)

because we can add programming functionality inside JS

30.

JavaScript Code can be called by using _________.

a)

RMI

b)

Function / Method

c)

Triggering Event

d)

Preprocessor

31.

Which of these is a loop?

a)

if(x<10)

b)

while(x<10)

c)

var x=10;

d)

text(x,10;10)

32.

Choose the right Javascript event

a)

inmouseout

b)

anmouseout

c)

enmouseout

d)

onmouseout

33.

Where do the <script></script> tags go in your document

a)

Within <img> tags

b)

In the <p></p> tags

c)

In the <title>

d)

In the <head> or <body>

34.

Choose the correct Javascript mouse event

a)

inmouseover

b)

andmouseover

c)

enmouseover

d)

onmouseover

35.
In JavaScript, you should include a semi-colon at the end of each statement.
a)
yes
b)
no
36.
Which of the following formatting tags are HTML and DO NOT need to be inside of the <script> </script> tags?
a)
<div>
b)
<h1>
c)
<h3>
d)
all
37.
Javascript is case-sensitive
a)
True
b)
False
38.
What is CSS used for?
a)
styling web pages
b)
formatting script correctly
c)
client side scripting
d)
server side scripting
39.

JavaScript is used to enhance what kind of document?

a)

JS

b)

HTML

c)

Brackets

40.

JavaScripts need to be put in the ____ and ____section of an HTML page.

a)

head and body

b)

Paragraph

c)

footer

41.

Inside which HTML element do we put the JavaScript?

a)

<js>

b)

<script>

c)

<scripting>

d)

<javascript>

42.

A programming language used for webpage functionality such as interactivity, data processing, animation, and development of purpose built apps such as mobile and desktop apps and more.

a)

HTML5

b)

CSS

c)

JS

d)

C#

43.
Which of these is an example of CSS code?
a)
<H2>
b)
.scene { float:left; }
c)
$("p").hide();
d)
INPUT
44.
Which of these is an example of JS code?
a)
<H2>
b)
.scene { float:left; }
c)
$("p").hide();
d)
INPUT
45.
Who was the primary author of HTML?
a)
Google
b)
Tim Berners-Lee
c)
Steve Jobs
d)
Bill Gates
46.
What is the function of the tag below?
<title> This tag </title>
a)
Stores data about the page
b)
Shows the server how to title the web page
c)
Stores the title of the web page for the browser or search engine
d)
Shows the server how to index the web page
47.
Which of the following is true about modern websites?
a)
HTML is not used
b)
CSS is sometimes used depending if the user has Chrome
c)
HTML and CSS must be used if JS is not used.
d)
None of the above
48.
Which of the following languages is used for server side scripting on the web?
a)
HTML
b)
Javascript
c)
PHP
d)
CSS
49.
Which of the following is used for client side scripting in browsers?
a)
Javascript
b)
HTML
c)
CSS
d)
PHP
50.
Choose one reason a developer might use client side scripting on a web page
a)
It's easier to write for a client
b)
It allows some of the processing to be done by the user's machine
c)
The client can save options to the database
d)
The client is more powerful than the server
51.
In Javascript how do you declare a variable?
a)
myname = "Bob"
b)
$myname = "Bob"
c)
Dim myname = "Bob"
d)
var myname = "Bob"
52.
Which of the following is an example of what is usually done using client side scripting?
a)
Accessing web databases
b)
Complex calculations
c)
Simple validation of user input
d)
Secure transactions