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