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