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 hex code is blue? (a) #ff00ff (b) #00ff00 (c) #ffff00 (d) #0000ff
-
2.⚖️ What colour is the text of this element?
<p class="box" id="main">Hi</p>
CSS:
#main { color: blue; }
p { color: yellow; }
.box { color: green; } (a) green (b) blue (c) white (d) yellow -
3.⚖️ What colour is the text of this element?
<p class="menu" id="top">Hi</p>
CSS:
#top { color: orange; }
#top { color: white; } (a) red (b) orange (c) white (d) purple -
4.♿ Is this heading order correct (no level skipped)?
<h1> → <h2> → <h2> → <h4> (a) Yes (b) No - 5.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h1> or <h6>? (a) <h2> (b) <h1> (c) <h4> (d) <h6>
-
6.⚖️ What colour is the text of this element?
<h2 class="note" id="top">Hi</h2>
CSS:
#top { color: blue; }
#top { color: green; } (a) blue (b) green (c) orange (d) yellow -
7.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="sport"> Kabaddi
<input type="checkbox" name="sport"> Hockey
<input type="checkbox" name="sport"> Chess
</form> - 8.🌐 Which one colours code to help us? (a) a code editor (b) a web browser (c) a web server
-
9.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 5; i++) {
total = total + 4;
}
console.log(total); - 10.📝 What does a password box show instead of letters? (a) dots (b) numbers (c) capital letters (d) emojis
- 11.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h2> or <h4>? (a) <h4> (b) <h5> (c) <h3> (d) <h2>
-
12.📋 What number does the browser show next to “Mango”?
<ol start="5">
<li>Orange</li>
<li>Mango</li>
<li>Papaya</li>
</ol> - 13.True or false: <ul> is an unordered list. (a) False (b) True
- 14.Which of these does JavaScript do? (a) makes headings and lists (b) sets colours and fonts (c) puts a picture on a page (d) shows a pop-up message
- 15.🌈 Which colour is rgb(255, 0, 255)? (a) black (b) red (c) cyan (d) magenta
- 16.📝 What does <hr> draw? (a) a table (b) a picture (c) a link (d) a line across the page
- 17.🌍 What finds the server for a domain name like example.com? (a) CSS (b) alt (c) HTML (d) DNS
-
18.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>Hello, world!</p>
<h2>Rain today</h2>
<p>I love mangoes.</p>
<h2>Cricket is fun.</h2> - 19.True or false: <h1>My Site</h1> goes in script.js. (a) False (b) True
-
20.✍️ Which property is set to italic in this rule?
#top {
font-weight: bold;
font-style: italic;
color: red;
font-size: 20px;
} (a) color (b) font-style (c) font-size (d) italic - 21.📱 max-width: 600px applies when the screen is ___. (a) exactly 1000px (b) 600px or narrower (c) turned off (d) 600px or wider
- 22.✍️ In color: blue; which part is the value? (a) ; (b) blue (c) : (d) color
- 23.True or false: <th> makes a heading cell. (a) True (b) False
- 24.✍️ How does a CSS comment start? (a) <!-- (b) # (c) /* (d) //
- 25.Which of these goes in the head? (a) <link rel="stylesheet"> (b) <p> (c) <ul> (d) <img>
-
26.⚖️ What colour is the text of this element?
<p class="box" id="top">Hi</p>
CSS:
p { color: orange; }
.box { color: white; } (a) white (b) red (c) orange (d) black -
27.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 260px;
padding: 5px;
border: 5px solid black;
margin: 0px;
} - 28.🔢 To build and share your first web page, which comes FIRST? (a) publish it online (b) plan what to show (c) add CSS styles (d) write the HTML
-
29.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 320px;
justify-content: center;
}
Inside are 4 boxes, each 40px wide (no margins). -
30.⚖️ What colour is the text of this element?
<h1 class="big" id="top">Hi</h1>
CSS:
.big { color: red; }
h1 { color: yellow; }
#top { color: purple; } (a) yellow (b) black (c) red (d) purple - 31.📝 Which tag makes a drop-down list? (a) <ul> (b) <select> (c) <li> (d) <ol>
- 32.True or false: HTML on its own cannot make bullet lists. (a) True (b) False
- 33.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h4> or <h2>? (a) <h4> (b) <h1> (c) <h5> (d) <h2>
-
34.⚖️ What colour is the text of this element?
<h2 class="menu" id="intro">Hi</h2>
CSS:
#intro { color: yellow; }
#intro { color: blue; } (a) blue (b) yellow (c) orange (d) white - 35.True or false: margin is the line round the box. (a) True (b) False
- 36.💪 Which justify-content value puts boxes in the middle? (a) flex-start (b) flex-end (c) space-between (d) center
- 37.📝 Which tag makes a big box for many lines of text? (a) <p> (b) <input> (c) <br> (d) <textarea>
- 38.📝 What does <br> do? (a) makes a list (b) starts a new line (c) makes text bold (d) adds a picture
- 39.🔗 Which attribute holds the address of a link? (a) alt (b) src (c) href (d) id
- 40.🌈 Which colour of light is strongest in rgb(109, 100, 241)? (a) blue (b) green (c) red
Answer key
- #0000ff
- blue
- white
- No
- <h6>
- green
- 3
- a code editor
- 20
- dots
- <h2>
- 6
- True
- shows a pop-up message
- magenta
- a line across the page
- DNS
- 3
- False
- font-style
- 600px or narrower
- blue
- True
- /*
- <link rel="stylesheet">
- white
- 280
- plan what to show
- 80
- purple
- <select>
- False
- <h5>
- blue
- False
- center
- <textarea>
- starts a new line
- href
- blue
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids