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