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