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