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