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