Web Worksheet: Your First Website
Code tip (One file per job): Tags → index.html; selector { … } → style.css; let, alert, console.log → script.js. Plan → write the HTML → add CSS → test in a browser → publish. Use small letters and dashes in file names; save and refresh to see changes.
NameDateTime takenScore ___ / 40
- 1.True or false: .box { padding: 8px; } goes in style.css. (a) True (b) False
- 2.🔢 To build and share your first web page, which comes LAST? (a) test in a browser (b) plan what to show (c) add CSS styles (d) publish it online
- 3.🚀 What is the home page file of a website usually called? (a) main.png (b) start.js (c) home.css (d) index.html
- 4.🚀 Which file should this code go in: #top { color: blue; } (a) index.html (b) style.css (c) script.js
- 5.🚀 Which file should this code go in: <a href="a.html">Go</a> (a) script.js (b) index.html (c) style.css
- 6.🚀 Which file should this code go in: <ul><li>Art</li></ul> (a) style.css (b) index.html (c) script.js
- 7.True or false: alert("Hi"); goes in script.js. (a) True (b) False
- 8.True or false: body { margin: 0; } goes in style.css. (a) False (b) True
- 9.🚀 Which program lets you see your web page while you build it? (a) a music player (b) a calculator (c) a photo viewer (d) a web browser
- 10.True or false: h1 { font-size: 32px; } goes in script.js. (a) True (b) False
- 11.🔢 To build and share your first web page, what comes right after “add CSS styles”? (a) publish it online (b) test in a browser (c) write the HTML (d) plan what to show
- 12.🚀 Which file should this code go in: <img src="cat.png"> (a) index.html (b) style.css (c) script.js
- 13.🚀 Which file is best for the colours and fonts? (a) index.html (b) script.js (c) photo.jpg (d) style.css
- 14.🚀 Which file is best for code that reacts to clicks? (a) index.html (b) script.js (c) style.css (d) notes.txt
- 15.True or false: #top { color: blue; } goes in script.js. (a) False (b) True
- 16.True or false: alert("Hi"); goes in style.css. (a) False (b) True
- 17.🚀 Which file should this code go in: alert(score); (a) script.js (b) index.html (c) style.css
- 18.True or false: h1 { font-size: 32px; } goes in index.html. (a) False (b) True
- 19.True or false: body { margin: 0; } goes in index.html. (a) False (b) True
- 20.True or false: p { color: red; } goes in index.html. (a) False (b) True
- 21.🚀 Which file should this code go in: h1 { font-size: 32px; } (a) script.js (b) index.html (c) style.css
- 22.🚀 Where in index.html does the link to style.css go? (a) in the head (b) after </html> (c) inside a <p> (d) in the footer
- 23.True or false: #top { color: blue; } goes in style.css. (a) True (b) False
- 24.🔢 To build and share your first web page, which comes first: “write the HTML” or “publish it online”? (a) publish it online (b) write the HTML
- 25.True or false: <p>Hello!</p> goes in index.html. (a) True (b) False
- 26.True or false: <ul><li>Art</li></ul> goes in index.html. (a) False (b) True
- 27.🔢 To build and share your first web page, which comes first: “plan what to show” or “add CSS styles”? (a) plan what to show (b) add CSS styles
- 28.🚀 Which file should this code go in: console.log(5 + 2); (a) script.js (b) style.css (c) index.html
- 29.True or false: <a href="a.html">Go</a> goes in index.html. (a) True (b) False
- 30.🚀 You change your code. What should you do to see the change? (a) rename the folder (b) delete the file (c) save and refresh (d) switch off the PC
- 31.🚀 Which file should this code go in: <h1>My Site</h1> (a) index.html (b) script.js (c) style.css
- 32.🔢 To build and share your first web page, what comes right after “plan what to show”? (a) add CSS styles (b) write the HTML (c) publish it online (d) test in a browser
- 33.🔢 To build and share your first web page, which comes first: “add CSS styles” or “test in a browser”? (a) add CSS styles (b) test in a browser
- 34.🔢 To build and share your first web page, which comes first: “write the HTML” or “test in a browser”? (a) test in a browser (b) write the HTML
- 35.🚀 Which file should this code go in: body { margin: 0; } (a) index.html (b) script.js (c) style.css
- 36.🔢 To build and share your first web page, which comes FIRST? (a) plan what to show (b) add CSS styles (c) write the HTML (d) test in a browser
- 37.True or false: console.log(5 + 2); goes in style.css. (a) True (b) False
- 38.🔢 To build and share your first web page, which comes first: “add CSS styles” or “plan what to show”? (a) plan what to show (b) add CSS styles
- 39.🚀 Which file should this code go in: <p>Hello!</p> (a) index.html (b) script.js (c) style.css
- 40.🚀 Which file should this code go in: p { color: red; } (a) index.html (b) style.css (c) script.js
Answer key
- True
- publish it online
- index.html
- style.css
- index.html
- index.html
- True
- True
- a web browser
- False
- test in a browser
- index.html
- style.css
- script.js
- False
- False
- script.js
- False
- False
- False
- style.css
- in the head
- True
- write the HTML
- True
- True
- plan what to show
- script.js
- True
- save and refresh
- index.html
- write the HTML
- add CSS styles
- write the HTML
- style.css
- plan what to show
- False
- plan what to show
- index.html
- style.css
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids