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