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