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