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