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