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