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