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