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