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