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.🌈 In #rrggbb, which colour do the first two digits give? (a) black (b) green (c) red (d) blue
- 2.📝 Which input type picks a day? (a) text (b) radio (c) date (d) submit
- 3.🧭 Why use <nav> instead of <div> for a menu? (a) it makes text red (b) it adds pictures (c) it tells its meaning (d) it loads faster
- 4.📝 What does <p> make? (a) a paragraph (b) a picture (c) a link (d) a table
- 5.True or false: a web browser shows pages from the web. (a) True (b) False
-
6.💬 Which text will NOT show on the page?
<!-- <p>Fun facts</p> -->
<p>My pets</p>
<p>Good morning!</p> (a) Fun facts (b) Good morning! (c) My pets - 7.📄 Can HTML on its own add up two numbers? (a) No (b) Yes
- 8.True or false: CSS makes a link. (a) False (b) True
- 9.🧭 Is <article> semantic or not semantic? (a) not semantic (b) semantic
- 10.Which of these is true of <article>? (a) helps you move around (b) holds extra side notes (c) holds one blog post (d) sits at the very top
- 11.⚡ Which tag holds JavaScript in a page? (a) <js> (b) <code> (c) <script> (d) <style>
- 12.📱 min-width: 800px applies when the screen is ___. (a) turned off (b) 800px or narrower (c) exactly 100px (d) 800px or wider
-
13.✍️ Which property is set to 2px solid in this rule?
.box {
border: 2px solid;
font-weight: bold;
} (a) font-style (b) width (c) border (d) 2px solid -
14.⚖️ What colour is the text of this element?
<h1 class="big" id="end">Hi</h1>
CSS:
#end { color: green; }
h1 { color: blue; } (a) green (b) yellow (c) blue (d) white -
15.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>The red kite</p>
<!-- <p>Our school trip</p> --> -
16.⚡ What number does this code print?
let books = 5;
books = books + 13;
books = books - 4;
console.log(books); - 17.🌍 Which one shows the page to you? (a) HTTPS (b) the browser (c) the URL (d) the server
-
18.⚖️ What colour is the text of this element?
<h1 class="star" id="hero">Hi</h1>
CSS:
.star { color: white; }
h1 { color: purple; } (a) orange (b) white (c) purple (d) black - 19.🎯 Can many elements share the same class? (a) No (b) Yes
- 20.🌍 Which one stores the site’s files? (a) HTTPS (b) the URL (c) the server (d) the browser
-
21.✍️ How many declarations (property: value pairs) are in this rule?
.note {
width: 300px;
} - 22.🔢 When you open a web page, which comes first: “you type the URL” or “DNS finds the server”? (a) DNS finds the server (b) you type the URL
-
23.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="250"> (a) dog.jpg (b) Birthday cake (c) moon.png (d) cake.jpg -
24.⚡ What does this code show?
let name = "Zoya";
console.log("Hi, " + name + "!"); (a) Zoya (b) name (c) Hi, Zoya! (d) Hi, name! - 25.📋 Which tag goes around each item of a list? (a) <ul> (b) <p> (c) <ol> (d) <li>
-
26.📱 The screen is 1366px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (max-width: 480px) {
p {
font-size: 10px;
}
} - 27.🖌️ Which CSS property makes the text bold? (a) font-weight (b) color (c) background-color (d) font-family
- 28.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
-
29.🔗 Which words do you click on?
<a href="contact.html">Art corner</a> (a) School news (b) Art corner (c) contact.html (d) href - 30.True or false: the server asks for a web page. (a) True (b) False
- 31.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
- 32.✍️ CSS declarations go inside which brackets? (a) [ ] (b) ( ) (c) < > (d) { }
-
33.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<!-- <p>My pets</p> -->
<p>Our school trip</p> - 34.⚡ What does JavaScript add to a web page? (a) the domain name (b) the page title (c) only colours (d) actions and changes
- 35.📋 Which list tag lists things in any order? (a) <ul> (b) <ol> (c) <li>
-
36.🎯 Which CSS selector matches this element?
<p class="star" id="top">Hello</p> (a) .menu (b) .top (c) p (d) #intro -
37.🔠 How many headings are in this code?
<h1>My pets</h1>
<p>Our school trip</p>
<p>Our school trip</p>
<p>My pets</p>
<p>Rain today</p> -
38.🔁 What does this code print?
let temp = 29;
if (temp < 24) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Cool (b) Hot -
39.🎯 Which CSS selector matches this element?
<p class="box" id="end">Hello</p> (a) #hero (b) #box (c) p (d) .end - 40.🌗 Is white on black easy or hard to read? (a) hard to read (b) easy to read
Answer key
- red
- date
- it tells its meaning
- a paragraph
- True
- Fun facts
- No
- False
- semantic
- holds one blog post
- <script>
- 800px or wider
- border
- green
- 1
- 14
- the browser
- white
- Yes
- the server
- 1
- you type the URL
- cake.jpg
- Hi, Zoya!
- <li>
- 12
- font-weight
- Yes
- Art corner
- False
- a web browser
- { }
- 1
- actions and changes
- <ul>
- p
- 1
- Cool
- p
- easy to read
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids