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