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