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