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