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 of these is true of <header>? (a) is the page’s key part (b) holds the logo and title (c) holds the menu of links (d) holds extra side notes
- 2.🧭 Is <footer> semantic or not semantic? (a) semantic (b) not semantic
-
3.📊 How many rows does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Jamun</td><td>Banana</td><td>Jamun</td></tr>
<tr><td>Mango</td><td>Jamun</td><td>Orange</td></tr>
<tr><td>Mango</td><td>Banana</td><td>Mango</td></tr>
</table> -
4.⚖️ What colour is the text of this element?
<p class="star" id="intro">Hi</p>
CSS:
#intro { color: orange; }
#intro { color: yellow; } (a) yellow (b) blue (c) orange (d) green -
5.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red<br>Stars shine<br>Birds sing<br>Sky is blue</p> - 6.Which of these is a strong password? (a) iloveyou (b) Blue@Tiger_74 (c) qwerty (d) 123456
- 7.Which of these is an opening tag? (a) <title> (b) </h1> (c) </p> (d) </b>
- 8.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 9.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) red (c) yellow (d) bright green
- 10.📊 Which tag makes one data cell? (a) <td> (b) <caption> (c) <tr> (d) <table>
- 11.Which of these is a closing tag? (a) <p> (b) <body> (c) <b> (d) </title>
- 12.What is <input type="date"> for? (a) is for one line of words (b) lets you tick many (c) picks a day (d) sends the form
-
13.✍️ How many declarations (property: value pairs) are in this rule?
.box {
font-size: 20px;
padding: 8px;
} - 14.🌗 Is blue on purple easy or hard to read? (a) hard to read (b) easy to read
- 15.Which of these is an opening tag? (a) </b> (b) </title> (c) <p> (d) </p>
- 16.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a dollar $ (c) a dot . (d) a slash /
- 17.🔢 In a basic web page file, which comes first: “<head>” or “<html>”? (a) <head> (b) <html>
- 18.📱 max-width: 600px applies when the screen is ___. (a) turned off (b) 600px or narrower (c) exactly 1000px (d) 600px or wider
- 19.🌈 In #00002e the blue part is the hex number 2e. What is it as a normal number?
- 20.📝 Which tag holds a whole form? (a) <form> (b) <input> (c) <ol> (d) <table>
- 21.What is <input type="email"> for? (a) hides what you type (b) takes only numbers (c) is for an email address (d) lets you pick only one
- 22.🏷️ Every HTML tag starts with which sign? (a) < (b) [ (c) { (d) (
-
23.✍️ Which property is set to red in this rule?
h1 {
margin: 10px;
color: red;
text-align: center;
} (a) font-size (b) color (c) text-align (d) red - 24.True or false: HTML on its own can add pictures to a page. (a) False (b) True
-
25.🔍 Which line is missing its closing tag?
line 1: <i>Hello, world!</i>
line 2: <small>I love mangoes.</small>
line 3: <h1>Cricket is fun. (a) line 1 (b) line 2 (c) line 3 -
26.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (max-width: 480px) {
p {
font-size: 12px;
}
} - 27.True or false: in <img>, src tells which image to load. (a) True (b) False
-
28.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="fort.jpg" alt="An old fort" width="350"> (a) A tiger asleep (b) width (c) An old fort (d) fort.jpg - 29.📝 Which tag makes a big box for many lines of text? (a) <p> (b) <br> (c) <textarea> (d) <input>
-
30.♿ Is this heading order correct (no level skipped)?
<h1> → <h3> → <h3> → <h4> (a) No (b) Yes -
31.♿ Is this heading order correct (no level skipped)?
<h1> → <h2> → <h4> → <h4> (a) Yes (b) No - 32.True or false: <style> goes in the head. (a) True (b) False
- 33.True or false: .big is a class selector. (a) True (b) False
- 34.🌈 Which hex code is white? (a) #ff00ff (b) #ffff00 (c) #0000ff (d) #ffffff
- 35.📦 In the box model, which part is the gap round content? (a) margin (b) padding (c) border (d) content
- 36.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 6 (c) 10 (d) 1
- 37.🔗 Which attribute holds the address of a link? (a) id (b) href (c) alt (d) src
- 38.🌗 Is black on white easy or hard to read? (a) hard to read (b) easy to read
- 39.True or false: <ul> is an unordered list. (a) False (b) True
- 40.🔢 In a basic web page file, which comes FIRST? (a) </html> (b) <!DOCTYPE html> (c) </head> (d) <head>
Answer key
- holds the logo and title
- semantic
- 4
- yellow
- 5
- Blue@Tiger_74
- <title>
- No
- magenta
- <td>
- </title>
- picks a day
- 2
- hard to read
- <p>
- a slash /
- <html>
- 600px or narrower
- 46
- <form>
- is for an email address
- <
- color
- True
- line 3
- 12
- True
- An old fort
- <textarea>
- No
- No
- True
- True
- #ffffff
- padding
- 1
- href
- easy to read
- True
- <!DOCTYPE html>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids