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