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