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.🔒 Is the connection to this address scrambled (encrypted)?
https://www.example.net/games/chess.html (a) No (b) Yes -
2.🔗 Which address opens when you click this link?
<a href="about.html">Art corner</a> (a) Art corner (b) about.html (c) contact.html (d) https://example.com - 3.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 4.⚡ A JavaScript file usually ends with which extension? (a) .css (b) .js (c) .html (d) .jpg
- 5.True or false: a web server answers page requests. (a) False (b) True
- 6.📝 What does <br> do? (a) adds a picture (b) starts a new line (c) makes a list (d) makes text bold
- 7.🖼️ Which attribute of <img> tells which image to load? (a) height (b) alt (c) src (d) width
-
8.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Grapes</li>
<li>Papaya</li>
<li>Litchi</li>
<li>Orange</li>
</ul> -
9.🖌️ What colour is behind the letters?
h2 {
background-color: white;
font-size: 16px;
color: blue;
text-align: center;
} (a) white (b) blue (c) yellow - 10.🚀 Which file should this code go in: <p>Hello!</p> (a) style.css (b) index.html (c) script.js
- 11.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <li> (d) <p>
- 12.💪 Which justify-content value packs boxes at the start? (a) flex-start (b) center (c) flex-end (d) space-between
- 13.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
-
14.⚖️ What colour is the text of this element?
<p class="note" id="hero">Hi</p>
CSS:
.note { color: black; }
p { color: blue; } (a) purple (b) red (c) blue (d) black - 15.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
16.🌍 What is the domain name in this URL?
https://www.example.net/index.html (a) learn.example.com (b) /index.html (c) https (d) www.example.net - 17.✍️ CSS declarations go inside which brackets? (a) < > (b) ( ) (c) [ ] (d) { }
-
18.📝 How many paragraphs does this code make?
<p>My pets</p>
<h2>Fun facts</h2>
<h2>My pets</h2>
<p>Good morning!</p>
<h2>The red kite</h2>
<p>My pets</p> - 19.True or false: <input type="radio"> takes only numbers. (a) False (b) True
- 20.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) exactly 1000px (c) turned off (d) 600px or narrower
- 21.True or false: <title> goes in the head. (a) False (b) True
- 22.🔤 In “HTML”, what does the L stand for? (a) Language (b) Line (c) Laptop (d) Link
- 23.True or false: the browser stores the site’s files. (a) True (b) False
- 24.Which of these goes in the head? (a) <img> (b) <title> (c) <ul> (d) <a>
-
25.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>My best friend</p> -->
<p>Cricket is fun.</p>
<!-- <p>Fun facts</p> --> -
26.🔒 Is the connection to this address scrambled (encrypted)?
http://www.example.com/about.html (a) No (b) Yes - 27.💪 Which justify-content value puts boxes in the middle? (a) center (b) space-between (c) flex-end (d) flex-start
-
28.🔁 How many numbers does this code print?
for (let i = 0; i < 17; i = i + 3) {
console.log(i);
} - 29.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h4> or <h5>? (a) <h6> (b) <h5> (c) <h2> (d) <h4>
- 30.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the later one (b) the first one (c) the shorter one (d) neither
-
31.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 260px;
padding: 15px;
border: 3px solid black;
margin: 0px;
} - 32.🔢 On a typical page, from top to bottom, which comes FIRST? (a) <main> (b) <footer> (c) <header> (d) <nav>
- 33.True or false: HTML makes headings and lists. (a) True (b) False
- 34.True or false: <td> makes one data cell. (a) True (b) False
- 35.🏷️ Is <body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 36.True or false: <nav> sits at the very top. (a) False (b) True
-
37.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>Mars is red.</p>
</body>
</html> (a) index.html (b) Easy snacks (c) Cricket Club (d) Mars is red. -
38.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Orange</td><td>Jamun</td><td>Jamun</td></tr>
<tr><td>Papaya</td><td>Guava</td><td>Grapes</td></tr>
<tr><td>Grapes</td><td>Guava</td><td>Jamun</td></tr>
</table> - 39.📱 min-width: 800px applies when the screen is ___. (a) 800px or wider (b) exactly 100px (c) turned off (d) 800px or narrower
- 40.Which of these is a strong password? (a) 123456 (b) Kite_Fl1es@Dawn (c) qwerty (d) riya2014
Answer key
- Yes
- about.html
- Yes
- .js
- True
- starts a new line
- src
- 5
- white
- index.html
- <li>
- flex-start
- in the body
- black
- an empty tag
- www.example.net
- { }
- 3
- False
- 600px or narrower
- True
- Language
- False
- <title>
- 1
- No
- center
- 6
- <h6>
- the later one
- 296
- <header>
- True
- True
- an opening tag
- False
- Cricket Club
- 3
- 800px or wider
- Kite_Fl1es@Dawn
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids