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.📄 Can HTML on its own run a game loop? (a) Yes (b) No
- 2.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 6 (c) 1 (d) 3
- 3.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <ol> (d) <br>
- 4.🚀 Which file should this code go in: p { color: red; } (a) script.js (b) index.html (c) style.css
- 5.True or false: to check for https first is not safe. (a) False (b) True
- 6.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <p> (c) <h6> (d) <br>
- 7.True or false: <td> makes one data cell. (a) False (b) True
-
8.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Kites fly high</p> - 9.🔗 Which attribute holds the address of a link? (a) id (b) src (c) href (d) alt
- 10.📝 Does <input> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 11.True or false: margin is the gap to other boxes. (a) True (b) False
- 12.True or false: <input type="checkbox"> is for an email address. (a) True (b) False
- 13.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
-
14.✍️ What value is given to font-weight in this rule?
body {
font-weight: bold;
background-color: yellow;
} (a) 300px (b) font-weight (c) bold (d) 2px solid - 15.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h5>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
- 16.True or false: <th> gives the table a title. (a) False (b) True
- 17.True or false: the URL is the page’s address. (a) False (b) True
- 18.🌐 Which one opens web pages for us? (a) a web server (b) a code editor (c) a web browser
-
19.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p>
<p>Good morning!</p> - 20.True or false: JavaScript sets colours and fonts. (a) True (b) False
- 21.True or false: “link text “click here”” makes the page harder to use. (a) True (b) False
- 22.🧩 Which language makes a link? (a) HTML (b) JavaScript (c) CSS
- 23.💪 Which flexbox property sets space between boxes? (a) justify-content (b) gap (c) align-items (d) flex-direction
- 24.🔐 Is abcd1234 a strong or a weak password? (a) strong (b) weak
- 25.🌍 Which program shows a web page to us? (a) a paint program (b) a music player (c) a web browser (d) a calculator
- 26.What is <input type="email"> for? (a) lets you pick only one (b) sends the form (c) is for an email address (d) takes only numbers
- 27.🔢 On a typical page, from top to bottom, which comes first: “<footer>” or “<nav>”? (a) <footer> (b) <nav>
- 28.True or false: JavaScript rounds box corners. (a) True (b) False
-
29.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<p>My pets</p>
<h2>My pets</h2>
<p>My pets</p>
<h4>Hello, world!</h4> - 30.Which of these is true of a web browser? (a) shows line numbers (b) sends pages over the net (c) shows pages from the web (d) stores a website’s files
- 31.Which of these is an opening tag? (a) </p> (b) </b> (c) </body> (d) <li>
- 32.♿ What does good colour contrast mean? (a) text stands out clearly (b) no colours at all (c) only red text (d) many bright colours
- 33.🧩 Which language counts down a timer? (a) HTML (b) CSS (c) JavaScript
- 34.🎨 A CSS file usually ends with which extension? (a) .js (b) .png (c) .html (d) .css
- 35.📝 Which tag gives a form box a name you can click? (a) <h1> (b) <hr> (c) <label> (d) <title>
-
36.🖌️ Where does the text sit on its line?
h1 {
text-align: right;
background-color: red;
font-size: 16px;
color: green;
} (a) in the middle (b) on the left (c) on the right -
37.✍️ What is the selector in this CSS rule?
.note {
font-style: italic;
color: red;
text-align: center;
} (a) #top (b) .note (c) red (d) font-style -
38.✍️ How many declarations (property: value pairs) are in this rule?
#top {
background-color: yellow;
margin: 10px;
color: red;
width: 300px;
} -
39.✍️ What is the selector in this CSS rule?
li {
margin: 10px;
width: 300px;
font-weight: bold;
} (a) 300px (b) body (c) li (d) margin -
40.✍️ What is the selector in this CSS rule?
li {
background-color: yellow;
width: 300px;
font-size: 20px;
} (a) background-color (b) 300px (c) li (d) body
Answer key
- No
- 1
- <ol>
- style.css
- False
- <h1>
- True
- 2
- href
- an empty tag
- True
- False
- <ul>
- bold
- <h5>
- False
- True
- a web browser
- 2
- False
- True
- HTML
- gap
- weak
- a web browser
- is for an email address
- <nav>
- False
- 3
- shows pages from the web
- <li>
- text stands out clearly
- JavaScript
- .css
- <label>
- on the right
- .note
- 4
- li
- li
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids