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