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