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.True or false: <title> goes in the head. (a) True (b) False
- 2.🔢 To build and share your first web page, what comes right after “test in a browser”? (a) write the HTML (b) add CSS styles (c) publish it online (d) plan what to show
- 3.True or false: <hr> has a closing tag. (a) True (b) False
- 4.🎨 Which tag connects an outside CSS file? (a) <a> (b) <img> (c) <link> (d) <css>
- 5.🔁 Which loop repeats code a set number of times? (a) else (b) let (c) if (d) for
- 6.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as one space (c) as a dot (d) as a new line
- 7.🧩 Which language counts down a timer? (a) CSS (b) JavaScript (c) HTML
-
8.⚖️ What colour is the text of this element?
<p class="box" id="intro">Hi</p>
CSS:
p { color: green; }
#intro { color: red; } (a) red (b) yellow (c) orange (d) green -
9.⚖️ What colour is the text of this element?
<p class="big" id="end">Hi</p>
CSS:
p { color: green; }
.big { color: orange; }
#end { color: black; } (a) white (b) black (c) green (d) orange -
10.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Guava</li>
<li>Orange</li>
<li>Papaya</li>
<li>Jamun</li>
<li>Litchi</li>
</ul> -
11.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 130px;
padding: 20px;
border: 3px solid black;
margin: 20px;
} -
12.📱 The screen is 820px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 480px) {
p {
font-size: 28px;
}
} - 13.Which of these goes in the head? (a) <title> (b) <h1> (c) <a> (d) <img>
- 14.🎨 One CSS file can style how many pages? (a) only one word (b) only one image (c) many pages (d) no pages
- 15.Which of these has a closing tag? (a) <img> (b) <br> (c) <b> (d) <meta>
- 16.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
- 17.True or false: <ul> shows 1, 2, 3 numbers. (a) False (b) True
- 18.🔢 To build and share your first web page, which comes LAST? (a) add CSS styles (b) publish it online (c) test in a browser (d) plan what to show
- 19.📝 What does <br> do? (a) makes a list (b) adds a picture (c) makes text bold (d) starts a new line
- 20.True or false: in <img>, height tells which image to load. (a) True (b) False
-
21.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Fun facts</p>
<p>Cricket is fun.</p>
<p>My best friend</p> (a) Our school trip (b) Cricket is fun. (c) My best friend (d) Fun facts - 22.True or false: the URL scrambles data on its way. (a) True (b) False
- 23.🌍 Which one asks for a web page? (a) the browser (b) the server (c) HTTPS (d) the URL
-
24.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 210px;
padding: 15px;
border: 5px solid black;
margin: 5px;
} -
25.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<h2>My best friend</h2>
<h2>Fun facts</h2>
<h2>Fun facts</h2>
<h2>My best friend</h2>
<p>Cricket is fun.</p> -
26.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 110px;
padding: 15px;
border: 4px solid black;
margin: 0px;
} - 27.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) < (d) (
- 28.What is <input type="email"> for? (a) picks a day (b) lets you pick only one (c) is for an email address (d) hides what you type
- 29.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
-
30.💬 How many paragraphs show on the page?
<p>Rain today</p>
<p>The red kite</p>
<!-- <p>My pets</p> --> -
31.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>The red kite</p>
<p>Rain today</p>
<h3>Rain today</h3> - 32.What does font-family do? (a) centres a heading (b) makes the text bold (c) colours behind the text (d) picks the font style
- 33.💪 Which justify-content value packs boxes at the start? (a) flex-end (b) flex-start (c) center (d) space-between
- 34.True or false: <li> goes inside ul or ol. (a) False (b) True
-
35.🌍 What is the protocol in this URL?
http://www.example.net/maths/tables.html (a) /maths/tables.html (b) www.example.net (c) https (d) http - 36.🌐 Which one is where we type code? (a) a code editor (b) a web server (c) a web browser
- 37.🔍 Which is the odd one out? (a) changes the page live (b) rounds box corners (c) checks a quiz answer (d) counts down a timer
- 38.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h6> (d) <h1>
- 39.True or false: in <img>, height describes the picture. (a) True (b) False
- 40.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a slash / (c) a dollar $ (d) a hash #
Answer key
- True
- publish it online
- False
- <link>
- for
- as one space
- JavaScript
- red
- black
- 6
- 216
- 28
- <title>
- many pages
- <b>
- <ul>
- False
- publish it online
- starts a new line
- False
- Our school trip
- False
- the browser
- 250
- 2
- 148
- <
- is for an email address
- in the head
- 2
- 2
- picks the font style
- flex-start
- True
- http
- a code editor
- rounds box corners
- <h6>
- False
- a slash /
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids