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