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