wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

WS301 - Quiz

Total questions: 70

Worksheet time: 35mins

Name
Class
Date
1.

The raw text, images, and other elements included in a web page.

a)

Website Content

b)

Website Structure

c)

Website Tags

d)

Website

2.

<!Doctype html> creates an element known as the DOCTYPE ______, which lets user agents know that the document contents are written in HTML.

a)

property

b)

declaration

c)

attribute

d)

element

3.

Choose the correct HTML element to define emphasized text.

a)

<emphasize>

b)

<em>

c)

<italic>

d)

<e>

4.

HTML is what type of language ?

a)

Scripting Language

b)

Markup Language

c)

Network Protocol

d)

Programming Language

5.

Name an element which doesn't have a closing tag.

a)

<img>

b)

<body>

c)

<p>

d)

<head>

6.

The purpose of different pieces of content in a web page, used to help the computer determine how that content should be displayed

a)

Website structure

b)

Website content

c)

Intellectual property

d)

Copyright

7.

To make your site available to anyone with access to the web, you need to copy the files to a web _______, which is a computer optimized to store and share the documents and that has an extremely high-speed Internet connection.

a)

portal

b)

server

c)

publisher

d)

client

8.

What is the correct HTML element for inserting a line break?

a)

<break>

b)

<endline>

c)

<br>

d)

<newline>

9.

Which heading HTML elements will create the smallest font size on a website?

a)

<h1>name</h1>

b)

<h2>name</h2>

c)

<h7>name</h7>

d)

<h5>name</h5>

10.

The content of the web (such as your pictures, text, links) will show up here.

a)

Head

b)

Body

c)

Style

d)

Footer

11.

Which tag is used to create a hyperlink?

a)

<a>

b)

<href>

c)

<src>

d)

<b>

12.

How do you center text?

a)

text-align: true;

b)

text-align: center; true;

c)

text-align: center;

d)

text: align center;

13.

What is will the highlighted tag do?


<p>My favourite colour is blue<br>I support Southend United.

</p>

a)

it will make the text bold

b)

it add one space between the words

c)

it will emphasize the blue color

d)

it will place the text on another line

14.

Which code will make your background red?

a)

<body style=background-color:red;>

b)

<body style="background-color:yellow;">

c)

<body style="background-color:red;">

d)

<body colormybg="background-color:red;">

15.

Which word is not used in HTML structure?

a)

footer

b)

body

c)

head

d)

arm

16.

Which is NOT a web browser?

a)

Chrome

b)

Yahoo

c)

Firefix

d)

Safari

17.

HTML Language uses

a)

Tabs

b)

Tags

c)

Punctuation

d)

Quotations

18.

What does HTML stands for?

a)

How To Make Lumpia

b)

Hyperlink Markup Language

c)

Hypertext Markdown Language

d)

Hypertext Markup Language

19.

Who is making the Web standards?

a)

Google

b)

Mozilla

c)

The World Wide Web Consortium

d)

Bill Gates

20.

These are the programs which allow editing in a written text, hence to create a web page we need to write our code in these programs.

a)

Web Browsers

b)

HTML

c)

Text Editors

d)

IDE's

21.

In HTML this provides extra information about the element, and it is applied within the start tag.

a)

Tag

b)

Syntax

c)

Element

d)

Attribute

22.

Which of the following is the correct syntax of declaring an attribute.

a)

<tag name attr_value= " attribute_name"> content </ tag name>

b)

<tag name> attribute_name= " attr_value"</ tag name>

c)

<tag name properties= " attr_value"> content </ tag name>

d)

<tag name attribute_name= " attr_value"> content </ tag name>

23.

In an HTML file, everything written within tags are termed as HTML ____________.

a)

Elements

b)

Tag

c)

Syntax

d)

properties

24.

What is the difference between HTML and CSS?

a)

CSS is one type of HTML

b)

HTML gives a webpage structure. CSS provides styling.

c)

CSS structures a webpage. HTML strictly provides styling.

d)

There is no difference.

25.

How can you make a numbered list?

a)

<list>

b)

<ol>

c)

<dl>

d)

<ul>

26.

What does CSS stand for?

a)

Computer Style Sheets

b)

Cascading Styling Sheets

c)

Control Style Sheets

d)

Cascading Style Sheets

27.

To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?

a)

Yes

b)

No

28.

Which HTML tag is used to define an internal style sheet?

a)

style

b)

css

c)

script

d)

head

29.

An application of CSS where all CSS property is define in a separate .css file, and then include the file with HTML file using tag in section.

a)

Inline CSS

b)

Internal or Embedded CSS

c)

External CSS

d)

style

30.

An application of CSS where all CSS property is define using <style> tag in <head> section.

a)

Inline CSS

b)

Internal or Embedded CSS

c)

External CSS

d)

Style css

31.

It is used to specify a single or multiple class names for an HTML element.

a)

HTML Attributes

b)

HTML Class

c)

HTML Elements

d)

HTML Properties

32.

It is used to specify the unique ID for an element of the HTML document. It allocates the unique identifier which is used by the CSS and the JavaScript for performing certain tasks.

a)

ID Attribute

b)

Class Attribute

c)

Style Attribute

d)

Value Attribute

33.

in CSS declaration Identify No. 1

a)

Declaration

b)

Selector

c)

Element

d)

Attribute

34.

in CSS declaration Identify No. 2

a)

Declaration

b)

Selector

c)

Element

d)

Property

35.

in CSS declaration Identify No. 3

a)

Declaration

b)

Selector

c)

Element

d)

Value

36.

in CSS declaration Identify No. 4

a)

Declaration

b)

Selector

c)

Element

d)

Value

37.

How do you display a margin like this: top margin is 25, left margin is 100px, right margin is 50, bottom margin is 75px.

a)

margin: 25px 50px 75px 100px;

b)

margin: 50px 25px 75px 100px;

c)

margin: 25px 100px 50px 75px;

d)

margin: 25px 75px 50px 100px;

38.

Which CSS property controls the text size?

a)

text-size

b)

text-color

c)

font-size

d)

font-style

39.

How do you insert a comment in a CSS file?

a)

*this is a comment ' this is a comment

b)

/*this is a comment*/ /*this is a comment*/

c)

//this is a comment// /this is a comment

d)

/this is a comment // this is a comment

40.

Which is the correct CSS syntax?

a)

{body:color=black(body}

b)

{body;color:black}

c)

body:color=black

d)

body {color: black}

41.

To create a dotted border around the page

a)

border-style

b)

border-color

c)

border-width

d)

width

42.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

p {

color: pink;

}

d)

body {

color: pink;

}

43.

What does a class do?

a)

adds color to words

b)

adds style to a whole page

c)

adds style to specific elements

d)

adds a lot more work

44.

Select the rule set to make all the text in your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

body {

text-align: center;

color: blue;

}

d)

p {

text-align: center;

color: blue;

}

45.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

46.

What is the correct syntax to change the background color with css?

a)

background-color: purple;

b)

background-color = "purple";

c)

backgroundcolor=orange

d)

change-background-color: purple

47.

Where should you put the link tag to connect your CSS and HTML file?

a)

Between the <head> </head> in HTML

b)

Between the <body> </body> in HTML

c)

Between the <title> </title> in HTML

d)

None of the above.

48.

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" src="styles.css">

49.

Which is the value in this CSS?

p {color: red;}

a)

p

b)

red

c)

color

d)

{}

50.

If you want to have more than one declaration in a CSS rule, what character separates them?

a)

comma ,

b)

semi-colon ;

c)

equals =

d)

colon :

51.

What is the proper code to insert an image named "frog.jpg"?

a)

<img src="frog" width="104" height="142">

b)

<img src="frog" width="104" height="142">

c)

<img src="frog" width="104" height="142">

d)

<img src="frog" width="104" height="142">

52.

What symbol should you use to target an id in CSS?

a)

.

b)

id

c)

#

d)

+

53.

What symbol should you use to target a class name in css?

a)

.

b)

#

c)

()

d)

class

54.

TRUE OR FALSE: HTML is used to style web pages.

a)

TRUE

b)

FALSE

55.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<head></head>

<body>

</body>

</html>

a)

<head></head>

b)

<title></title>

c)

<img></img>

d)

<div></div>

56.

What tag do you use to make a numbered list?

a)

<list>

b)

<ol>

c)

<li>

d)

<ul>

57.

TRUE OR FALSE: All tags require a closing tag.

a)

TRUE

b)

FALSE

58.

TRUE OR FALSE: HTML is used to add content to web pages.

a)

TRUE

b)

FALSE

59.

What symbols go around the properties for each CSS selector?

a)

< >

b)

{ }

c)

[ ]

d)

( )

60.

Which is the selector for a link?

a)

a href { }

b)

a { }

c)

link { }

d)

href { }

61.

What is the difference between HTML and CSS?

a)

CSS is one type of HTML

b)

CSS structures a webpage. HTML strictly provides styling.

c)

HTML gives a webpage structure. CSS provides styling.

d)

There is no difference.

62.

Which one is the correct syntax for CSS?

a)

Provides the web browser with security information

b)

Provides the web browser with security information

c)

Provides the web browser with security information

d)

Tells the web browser what language to expect

63.

Where in the HTML document is the correct location to insert code to link to your external CSS?

a)

In the <head> section

b)

At the very end of the document

c)

In the <body> section

d)

At the very beginning of the document

64.

Which item interprets the source code in a web document?

a)

Web browser

b)

HTML editor

c)

HTML editor

d)

Text editor

65.

What is the difference between an HTML Tag and an HTML element?

a)

An HTML Tag is case sensitive and an HTML element is not case sensitive.

b)

An HTML Tag defines content and an HTML Element includes the opening and closing tags and everything in between.

c)

An HTML Tag defines content and an HTML Element gives additional meaning and content.

d)

An HTML Tag is always paired and an HTML element is an "empty" tag.

66.

Any time you are creating a website or a single web page with links to other websites, it is helpful to map out the ______ between pages.

a)

security links

b)

title tags

c)

keyboard shortcuts

d)

relationships

67.

It is important to test your code ___________.

a)

in a variety of popular browsers

b)

on multiple operating systems

c)

Both A and B

d)

Neither A nor B

68.

Placing the elements in a website layout that's functional, usable, and ideally, aesthetically pleasing is often the job of a __________.

a)

software engineer

b)

graphic engineer

c)

software designer

d)

graphic designer

69.

A web document must have which of the following tags?(multiple choice qn)

a)

<html>

b)

<body>

c)

<p>

d)

<img>

e)

<head>

70.

A tag pair assigns meaning to a web page ______, which is a specific component of the page, such as a paragraph or a heading.

a)

element

b)

attribute

c)

object

d)

property