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