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.🚀 Which file is best for the colours and fonts? (a) index.html (b) style.css (c) photo.jpg (d) script.js
- 2.🔢 To build and share your first web page, what comes right after “add CSS styles”? (a) plan what to show (b) test in a browser (c) publish it online (d) write the HTML
- 3.🚀 Which file should this code go in: body { margin: 0; } (a) script.js (b) style.css (c) index.html
- 4.🚀 Which program lets you see your web page while you build it? (a) a web browser (b) a calculator (c) a music player (d) a photo viewer
- 5.True or false: <ul><li>Art</li></ul> goes in script.js. (a) False (b) True
- 6.🔢 To build and share your first web page, which comes first: “plan what to show” or “add CSS styles”? (a) add CSS styles (b) plan what to show
- 7.🚀 What is the home page file of a website usually called? (a) home.css (b) start.js (c) main.png (d) index.html
- 8.True or false: <p>Hello!</p> goes in style.css. (a) True (b) False
- 9.🚀 Which file should this code go in: <p>Hello!</p> (a) script.js (b) index.html (c) style.css
- 10.🚀 Which file should this code go in: #top { color: blue; } (a) script.js (b) index.html (c) style.css
- 11.True or false: console.log(5 + 2); goes in script.js. (a) True (b) False
- 12.🔢 To build and share your first web page, which comes FIRST? (a) publish it online (b) plan what to show (c) add CSS styles (d) write the HTML
- 13.🚀 Which file should this code go in: <h1>My Site</h1> (a) index.html (b) style.css (c) script.js
- 14.🔢 To build and share your first web page, what comes right after “test in a browser”? (a) write the HTML (b) plan what to show (c) add CSS styles (d) publish it online
- 15.🚀 Which file should this code go in: <img src="cat.png"> (a) style.css (b) index.html (c) script.js
- 16.🚀 Which file should this code go in: <ul><li>Art</li></ul> (a) index.html (b) style.css (c) script.js
- 17.🚀 Which file should this code go in: let score = 0; (a) style.css (b) script.js (c) index.html
- 18.🔢 To build and share your first web page, which comes first: “test in a browser” or “write the HTML”? (a) test in a browser (b) write the HTML
- 19.🔢 To build and share your first web page, which comes first: “write the HTML” or “test in a browser”? (a) write the HTML (b) test in a browser
- 20.True or false: body { margin: 0; } goes in script.js. (a) False (b) True
- 21.🚀 Which file should this code go in: alert(score); (a) script.js (b) style.css (c) index.html
- 22.🚀 Which file should this code go in: console.log(5 + 2); (a) index.html (b) script.js (c) style.css
- 23.True or false: <img src="cat.png"> goes in style.css. (a) False (b) True
- 24.True or false: .box { padding: 8px; } goes in style.css. (a) True (b) False
- 25.🚀 You change your code. What should you do to see the change? (a) save and refresh (b) switch off the PC (c) rename the folder (d) delete the file
- 26.True or false: <a href="a.html">Go</a> goes in style.css. (a) True (b) False
- 27.🚀 Which file should this code go in: alert("Hi"); (a) style.css (b) index.html (c) script.js
- 28.True or false: #top { color: blue; } goes in style.css. (a) True (b) False
- 29.True or false: <h1>My Site</h1> goes in script.js. (a) True (b) False
- 30.True or false: score = score + 1; goes in style.css. (a) False (b) True
- 31.🚀 Which file should this code go in: .box { padding: 8px; } (a) script.js (b) index.html (c) style.css
- 32.True or false: alert("Hi"); goes in style.css. (a) False (b) True
- 33.🚀 Which file should this code go in: score = score + 1; (a) index.html (b) script.js (c) style.css
- 34.🚀 Should file names have spaces, like my page.html? (a) No (b) Yes
- 35.🔢 To build and share your first web page, which comes first: “publish it online” or “write the HTML”? (a) write the HTML (b) publish it online
- 36.True or false: console.log(5 + 2); goes in index.html. (a) True (b) False
- 37.True or false: <ul><li>Art</li></ul> goes in index.html. (a) True (b) False
- 38.🔢 To build and share your first web page, which comes first: “test in a browser” or “plan what to show”? (a) test in a browser (b) plan what to show
- 39.True or false: #top { color: blue; } goes in index.html. (a) False (b) True
- 40.True or false: let score = 0; goes in style.css. (a) True (b) False
Answer key
- style.css
- test in a browser
- style.css
- a web browser
- False
- plan what to show
- index.html
- False
- index.html
- style.css
- True
- plan what to show
- index.html
- publish it online
- index.html
- index.html
- script.js
- write the HTML
- write the HTML
- False
- script.js
- script.js
- False
- True
- save and refresh
- False
- script.js
- True
- False
- False
- style.css
- False
- script.js
- No
- write the HTML
- False
- True
- plan what to show
- False
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids