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