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