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