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