HTML & CSS – Question Bank
A. Multiple Choice Questions (5)
1. HTML is used to:
a) Style web pages
b) Create webpage structure
c) Play videos
d) Store data
2. Which tag creates a paragraph?
a) <h1>
b) <img>
c) <p>
d) <a>
3. Which attribute specifies image path?
a) alt
b) src
c) title
d) href
4. Which CSS type is stored in a separate file?
a) Inline
b) Internal
c) External
d) Embedded
5. Which property changes text colour?
a) font-size
b) color
c) padding
d) margin
B. One Word Questions (5)
1. What does HTML stand for?
2. Which HTML tag is used to create a hyperlink?
3. Which CSS property changes the background colour?
4. Which tag is used to insert an image?
5. Name the largest heading tag.
C. Output Questions (5)
1. Write HTML code to display the heading 'My School' using <h1>.
2. Write HTML code to display the paragraph: Welcome to our website.
3. Write HTML code to create a link to [Link] with the text 'Events'.
4. Write HTML code to insert an image named [Link] of width 300 and height 200.
5. Write HTML with internal CSS to make an <h1> green and <p> gray.
Answers
MCQs: 1-b, 2-c, 3-b, 4-c, 5-b
One Word:
1. HyperText Markup Language
2. <a>
3. background-color
4. <img>
5. <h1>
Output Answers:
1. <h1>My School</h1>
2. <p>Welcome to our website.</p>
3. <a href="[Link]">Events</a>
4. <img src="[Link]" width="300" height="200">
5.
<style>
h1 { color: green; }
p { color: gray; }
</style>
<h1>Welcome</h1>
<p>Learning through creativity.</p>