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