Q: What does HTML stand for?
a) Hyper Trainer Marking Language
b) Hyper Text Markup Language
c) Hyper Text Marketing Language
d) High Text Markup Level
b) Hyper Text Markup Language
Q: Which HTML tag is used to create a form?
a) <input>
b) <form>
c) <fieldset>
d) <textarea>
b) <form> ✅
Q: What does CSS stand for?
a) Cascading Style Sheets
b) Colorful Style Sheets
c) Creative Styling System
d) Computer Style Syntax
a) Cascading Style Sheets ✅
Q: Which property changes the text color in CSS?
a) background-color
b) color
c) font-color
d) text-style
b) color ✅
Q: Which HTML element is used for the largest heading?
a) <h6>
b) <heading>
c) <h1>
d) <head>
c) <h1> ✅
Q: Which tag is used to display an image in HTML?
a) <image>
b) <src>
c) <img>
d) <picture>
c) <img> ✅
Q: Which input type is used for a password field?
a) text
b) password
c) secret
d) hidden
b) password ✅
Q: Which CSS property changes the size of text?
a) font-size
b) text-size
c) font-weight
d) size
a) font-size ✅
Q: Which CSS property is used to change the background color?
a) background-style
b) bg-color
c) background-color
d) color-background
c) background-color ✅
Q: Which HTML tag is used to create a hyperlink?
a) <link>
b) <a>
c) <href>
d) <anchor>
b) <a> ✅
Q: Which attribute is used to provide an alternative text for an image?
a) alt
b) title
c) src
d) description
a) alt ✅
Q: Which HTML element groups related inputs inside a form?
a) <legend>
b) <fieldset>
c) <section>
d) <group>
b) <fieldset> ✅
Q: Which CSS property controls the space inside an element’s border?
a) margin
b) padding
c) spacing
d) border-spacing
b) padding ✅
Q: Which property changes the font of text?
a) font-family
b) font-style
c) text-family
d) font-type
a) font-family ✅
Q: Which HTML tag is used to define important text?
a) <b>
b) <important>
c) <strong>
d) <highlight>
c) <strong> ✅
Q: Which HTML tag is used to play audio files?
a) <sound>
b) <audio>
c) <music>
d) <mp3>
b) <audio> ✅
Q: What does the “action” attribute in <form> do?
a) Specifies the form name
b) Defines form behavior
c) Specifies where to send form data
d) Validates form data
c) Specifies where to send form data ✅
Q: Which CSS property controls the space outside an element’s border?
a) margin
b) padding
c) spacing
d) outline
a) margin ✅
Q: Which property makes text bold in CSS?
a) font-weight
b) bold
c) text-bold
d) weight
a) font-weight ✅
Q: In CSS, what does the unit px represent?
a) Percentage of the parent element
b) Physical size in millimeters
c) Relative size to the root font
d) Pixels, a fixed-size unit
d) Pixels, a fixed-size unit ✅
Q: Which HTML element defines navigation links?
a) <nav>
b) <navigation>
c) <links>
d) <menu>
a) <nav> ✅
Q: Which attribute is used to specify that an input field must be filled before submitting?
a) required
b) mustfill
c) validate
d) compulsory
a) required ✅
Q: Which CSS unit is relative to the root element’s font size?
a) em
b) rem
c) px
d) %
b) rem ✅
Q: In CSS, what is the difference between absolute and fixed positioning?
a) No difference
b) Absolute is relative to the nearest positioned ancestor; Fixed is relative to the viewport
c) Absolute is relative to the document; Fixed is relative to the parent
d) Fixed moves with scrolling; Absolute stays fixed
b) Absolute is relative to the nearest positioned ancestor; Fixed is relative to the viewport ✅
Q: Which HTML attribute is used to specify that an input field should automatically get focus when the page loads?
a) focus
b) autofocus
c) selected
d) default
b) autofocus ✅