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