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