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