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