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