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