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