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