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.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>All about me</h1>
<p>I like to read.</p>
</body>
</html> (a) All about me (b) index.html (c) Cricket Club (d) I like to read. -
2.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 500px;
justify-content: center;
}
Inside are 4 boxes, each 100px wide (no margins). - 3.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h3> or <h5>? (a) <h4> (b) <h3> (c) <h1> (d) <h5>
-
4.⚡ What number does this code print?
let coins = 19;
coins = coins + 15;
coins = coins - 3;
console.log(coins); -
5.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 320px;
justify-content: space-between;
}
Inside are 3 boxes, each 100px wide (no margins). - 6.🔗 What does HyperText mean? (a) secret text (b) text with links (c) text in colour (d) very big text
- 7.🛡️ Before typing a password on a site, check the address starts with ___. (a) www (b) ftp (c) http (d) https
- 8.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
-
9.💬 Which text will NOT show on the page?
<p>My pets</p>
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p> (a) My pets (b) Cricket is fun. (c) Rain today - 10.True or false: padding is space inside the border. (a) True (b) False
- 11.🎯 Which sign starts an id selector? (a) & (b) @ (c) . (d) #
- 12.⚖️ Which selector is the weakest? (a) a class selector (b) an element selector (c) an id selector
- 13.What is <input type="submit"> for? (a) hides what you type (b) is for one line of words (c) is for an email address (d) sends the form
-
14.⚖️ What colour is the text of this element?
<p class="menu" id="top">Hi</p>
CSS:
#top { color: purple; }
#top { color: yellow; } (a) red (b) yellow (c) orange (d) purple - 15.Which of these does JavaScript do? (a) lays out the page (b) makes a form box (c) changes the page live (d) makes a link
- 16.What does justify-content: flex-start do? (a) packs boxes at the start (b) puts boxes in the middle (c) equal gaps, none at ends (d) packs boxes at the end
- 17.♿ Who uses a screen reader? (a) only teachers (b) only robots (c) only coders (d) people who are blind
- 18.True or false: <input type="checkbox"> hides what you type. (a) True (b) False
- 19.🎯 Which element does the selector .menu style? (a) <li id="menu"> (b) <div class="big"> (c) <li class="menu"> (d) <li class="note">
-
20.🖌️ What colour is behind the letters?
h1 {
text-align: left;
font-size: 28px;
color: yellow;
background-color: black;
} (a) white (b) yellow (c) black - 21.💪 Which flexbox property sets space between boxes? (a) flex-direction (b) justify-content (c) gap (d) align-items
- 22.🔢 When you open a web page, which comes FIRST? (a) you type the URL (b) the browser shows it (c) DNS finds the server (d) the server sends files
- 23.🔠 Are headings shown in bold by default? (a) No (b) Yes
-
24.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 280px;
padding: 30px;
border: 3px solid black;
margin: 20px;
} - 25.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 100 (c) 1000 (d) 255
- 26.⚡ A JavaScript file usually ends with which extension? (a) .html (b) .css (c) .jpg (d) .js
- 27.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <br> (d) <ol>
- 28.📦 In the box model, which part is the gap round content? (a) border (b) content (c) padding (d) margin
- 29.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) </head> (b) <!DOCTYPE html>
- 30.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
- 31.🌈 Which colour of light is strongest in rgb(86, 173, 57)? (a) blue (b) red (c) green
- 32.Which of these is true of <article>? (a) helps you move around (b) holds a side box of tips (c) holds the menu of links (d) holds a news story
- 33.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h3>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
- 34.Which of these is not safe to do online? (a) use a strong password (b) ask before downloading (c) tell a trusted adult (d) meet an online stranger
- 35.True or false: <table> gives the table a title. (a) True (b) False
- 36.🎯 Can many elements share the same class? (a) Yes (b) No
- 37.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
-
38.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<!-- <p>Our school trip</p> -->
<p>My pets</p> -
39.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<p>I love mangoes.</p>
<p>Hello, world!</p> -
40.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="250"> (a) bus.jpg (b) fort.jpg (c) Our school bus (d) tiger.jpg
Answer key
- Cricket Club
- 50
- <h1>
- 31
- 10
- text with links
- https
- Yes
- Rain today
- True
- #
- an element selector
- sends the form
- yellow
- changes the page live
- packs boxes at the start
- people who are blind
- False
- <li class="menu">
- black
- gap
- you type the URL
- Yes
- 386
- 255
- .js
- <ol>
- padding
- <!DOCTYPE html>
- Yes
- green
- holds a news story
- <h1>
- meet an online stranger
- False
- Yes
- Yes
- 1
- 1
- bus.jpg
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids