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