Web Development Worksheet: Final Test
Code tip (Read it like a browser): Find the topic: HTML, CSS, JavaScript or how the web works. Read the code line by line, the way a browser would. For sums and loops, write each step down and check it again.
NameDateTime takenScore ___ / 40
- 1.♿ Does this help everyone, or make the page harder to use: write clear link text? (a) makes it harder (b) helps everyone
-
2.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>My pets</p>
<p>Cricket is fun.</p> - 3.🚀 Which program lets you see your web page while you build it? (a) a photo viewer (b) a calculator (c) a web browser (d) a music player
- 4.🌗 Is dark grey on white easy or hard to read? (a) easy to read (b) hard to read
- 5.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
- 6.🔍 Which is the odd one out? (a) rounds box corners (b) adds space around boxes (c) sets colours and fonts (d) puts a picture on a page
- 7.True or false: to think before you post is safe. (a) True (b) False
-
8.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>My drawings</h1>
<p>Try this poha.</p>
</body>
</html> (a) My drawings (b) body (c) My Hobbies (d) Try this poha. -
9.⚖️ What colour is the text of this element?
<p class="note" id="logo">Hi</p>
CSS:
#logo { color: orange; }
#logo { color: blue; } (a) yellow (b) blue (c) orange (d) purple -
10.🔁 How many times does this code print “Hi”?
for (let i = 3; i < 10; i++) {
console.log("Hi");
} - 11.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) an element name (d) a comment
- 12.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) opens web pages for us (d) hosts websites online
- 13.🌈 In #000012 the blue part is the hex number 12. What is it as a normal number?
-
14.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Papaya</li>
</ol> - 15.🌍 What does a web address (URL) tell the browser? (a) your password (b) the page colour (c) how old you are (d) where the page is
- 16.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
-
17.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="100"> (a) map.png (b) Map of India (c) width (d) Birthday cake -
18.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h2>Cricket is fun.</h2>
<h2>Good morning!</h2>
<h4>The red kite</h4>
<h3>Rain today</h3> - 19.True or false: “label every form box” helps everyone use the page. (a) False (b) True
- 20.🔢 To build and share your first web page, which comes first: “write the HTML” or “test in a browser”? (a) test in a browser (b) write the HTML
-
21.🖌️ Where does the text sit on its line?
h1 {
background-color: purple;
font-size: 12px;
text-align: right;
color: green;
} (a) on the right (b) in the middle (c) on the left - 22.Which of these is an empty tag? (a) <img> (b) <p> (c) <ul> (d) <h1>
-
23.⚖️ What colour is the text of this element?
<p class="box" id="main">Hi</p>
CSS:
.box { color: white; }
.box { color: orange; } (a) orange (b) yellow (c) white (d) purple - 24.True or false: HTML on its own cannot make headings. (a) True (b) False
-
25.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>My pets</p>
<h3>Cricket is fun.</h3> - 26.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
- 27.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <hr> (d) <ol>
- 28.Which of these is an opening tag? (a) </b> (b) <p> (c) </li> (d) </body>
- 29.🔢 To build and share your first web page, which comes LAST? (a) test in a browser (b) add CSS styles (c) publish it online (d) plan what to show
- 30.True or false: <caption> makes one table row. (a) True (b) False
- 31.⚡ What does JavaScript add to a web page? (a) the page title (b) the domain name (c) only colours (d) actions and changes
- 32.🛡️ Online: is it safe to tell a trusted adult? (a) not safe (b) safe
-
33.🖌️ What colour is behind the letters?
p {
color: white;
font-size: 20px;
background-color: red;
text-align: left;
} (a) red (b) green (c) white -
34.⚡ What number does this code print?
let runs = 9;
runs = runs + 18;
runs = runs - 2;
console.log(runs); -
35.🌍 What is the path in this URL?
http://school.example.in/news/today.html (a) http (b) school.example.in (c) /games/chess.html (d) /news/today.html - 36.True or false: <input type="number"> takes only numbers. (a) True (b) False
-
37.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>Our school trip</p>
<p>Our school trip</p> - 38.True or false: in <img>, alt describes the picture. (a) True (b) False
-
39.🔍 One closing tag is missing. Which one?
<i>Hello, world!</i>
<h3>My best friend
<strong>My pets</strong> (a) </h2> (b) </strong> (c) </h3> (d) </i> - 40.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a dot (b) as one space (c) as a new line (d) as 5 spaces
Answer key
- helps everyone
- 3
- a web browser
- easy to read
- <ul>
- puts a picture on a page
- True
- My drawings
- blue
- 7
- an attribute
- hosts websites online
- 18
- 2
- where the page is
- Yes
- Map of India
- 5
- True
- write the HTML
- on the right
- <img>
- orange
- False
- 2
- in the body
- <ol>
- <p>
- publish it online
- False
- actions and changes
- safe
- red
- 25
- /news/today.html
- True
- 3
- True
- </h3>
- as one space
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids