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