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