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