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