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.🔍 Which is the odd one out? (a) turns HTML into a page (b) has an address bar (c) stores a website’s files (d) opens web pages for us
- 2.🌈 Which colour is rgb(255, 255, 255)? (a) white (b) bright green (c) yellow (d) cyan
- 3.True or false: <input type="email"> is for an email address. (a) True (b) False
- 4.🔁 Which word runs code only when something is true? (a) if (b) log (c) for (d) let
- 5.🛡️ Before typing a password on a site, check the address starts with ___. (a) ftp (b) https (c) www (d) http
- 6.🧩 Which language rounds box corners? (a) HTML (b) CSS (c) JavaScript
-
7.🔍 Which line is missing its closing tag?
line 1: <i>I love mangoes.</i>
line 2: <b>Fun facts
line 3: <strong>Cricket is fun.</strong> (a) line 1 (b) line 3 (c) line 2 - 8.🚀 Which file is best for the colours and fonts? (a) style.css (b) photo.jpg (c) index.html (d) script.js
- 9.✍️ In color: blue; which part is the value? (a) color (b) blue (c) : (d) ;
- 10.True or false: <meta> has a closing tag. (a) True (b) False
- 11.What does font-size do? (a) makes letters bigger (b) makes the text bold (c) colours behind the text (d) centres a heading
- 12.🖌️ Which CSS property sets the letter colour? (a) font-weight (b) font-family (c) text-align (d) color
-
13.📱 The screen is 540px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (min-width: 768px) {
p {
font-size: 32px;
}
} - 14.True or false: <a> goes in the body. (a) True (b) False
-
15.⚡ What number does this code print?
let a = 5;
let b = 7;
console.log(a * b); - 16.Which of these is true of a web server? (a) saves our .html files (b) stores a website’s files (c) opens web pages for us (d) shows pages from the web
- 17.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h4> or <h6>? (a) <h1> (b) <h6> (c) <h4> (d) <h5>
- 18.💬 How does an HTML comment end? (a) --> (b) */ (c) // (d) >>
- 19.🌍 Which one sends the page back? (a) the browser (b) the server (c) HTTPS (d) the URL
- 20.True or false: #logo is an id selector. (a) False (b) True
- 21.True or false: <li> has a closing tag. (a) False (b) True
- 22.True or false: p is an element selector. (a) False (b) True
- 23.📝 What does <br> do? (a) makes text bold (b) makes a list (c) starts a new line (d) adds a picture
- 24.Which of these is an empty tag? (a) <h1> (b) <b> (c) <input> (d) <title>
- 25.📝 Which tag gives a form box a name you can click? (a) <label> (b) <h1> (c) <title> (d) <hr>
- 26.⚖️ Two rules with the same selector set a colour. Which one wins? (a) neither (b) the first one (c) the shorter one (d) the later one
-
27.✍️ How many declarations (property: value pairs) are in this rule?
.box {
font-weight: bold;
padding: 8px;
text-align: center;
color: red;
} - 28.🚀 Which file should this code go in: <ul><li>Art</li></ul> (a) index.html (b) script.js (c) style.css
- 29.🌍 What does a web address (URL) tell the browser? (a) how old you are (b) where the page is (c) the page colour (d) your password
- 30.🌍 Which one scrambles data on its way? (a) the browser (b) HTTPS (c) the server (d) the URL
-
31.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 250px;
padding: 5px;
border: 4px solid black;
margin: 10px;
} - 32.🔒 What does the lock (HTTPS) in the address bar mean? (a) the site is fast (b) the site is a game (c) the data is scrambled (d) the site is free
-
33.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>Cricket is fun.</p>
<!-- <p>My pets</p> -->
<p>Rain today</p> -
34.⚡ What does this code print? (Look at the quotes!)
let x = "3";
let y = 8;
console.log(x + y); (a) 11 (b) 38 (c) Error - 35.🌐 Which one sends pages over the net? (a) a web server (b) a code editor (c) a web browser
- 36.⚡ Which JavaScript word writes in the console? (a) if (b) console.log() (c) alert() (d) for
- 37.Which colour pair is easy to read? (a) white on black (b) light grey on white (c) yellow on white (d) red on green
- 38.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h1> or <h6>? (a) <h4> (b) <h5> (c) <h1> (d) <h6>
- 39.True or false: let score = 0; goes in script.js. (a) False (b) True
-
40.🔗 Where does this link open?
<a href="https://example.com">Take the quiz</a> (a) in a new tab (b) in the same tab
Answer key
- stores a website’s files
- white
- True
- if
- https
- CSS
- line 2
- style.css
- blue
- False
- makes letters bigger
- color
- 24
- True
- 35
- stores a website’s files
- <h1>
- -->
- the server
- True
- True
- True
- starts a new line
- <input>
- <label>
- the later one
- 4
- index.html
- where the page is
- HTTPS
- 288
- the data is scrambled
- 2
- 38
- a web server
- console.log()
- white on black
- <h6>
- True
- in the same tab
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids