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