WorksheetsHTML and CSS Quiz
Total questions: 50
Worksheet time: 25mins
Which tag is used for the largest heading?
Which tag inserts a line break?
Which is correct HTML bold tag?
Both b and c
HTML comment syntax is:
// comment
/* comment */
# comment
To create a hyperlink:
Which tag displays an image?
Ordered list uses:
To set background color:
backgroundcolor
bgcolor
color
background
CSS is written inside ______ tag for internal CSS.
Which is correct HTML table row tag?
Form is created using:
Checkbox input type is:
type="check"
type="tick"
type="checkbox"
type="radio"
JavaScript is added using:
CSS external file extension is:
.css
.style
.sheet
.txt
To create divisions:
Unordered list uses bullets by default.
True
False
To merge table columns:
colspan
merge
join
span-column
To set inline CSS:
css=" "
style=" "
inline=" "
text=" "
To create password field:
type="pass"
type="password"
type="pwd"
type="hidden"
Anchor target "_blank" means:
Open in same tab
Open in new tab
Open in popup
Disable link
Choose correct CSS syntax:
p {color: blue;}
p = blue
p:color = blue
p(color=blue)
Which attribute is used for image tooltip?
hint
alt
title
name
HTML5 layout tag:
Which attribute links external CSS?
import
href
link
src
In CSS, #id selects:
All elements
Class
ID
Tag
Which tag creates dropdown list?
To insert JavaScript externally:
To align image right using HTML:
align="right"
position="right"
img-right
float="right"
Table header cell is:
CSS property for background image:
bg-image
background-image
background-pic
img
Padding means:
Space inside border
Space outside border
Border thickness
Font spacing
Correct syntax for paragraph color:
p {text-color: red;}
p {color: red;}
color="red"
p.color(red)
To create multi-line text box:
Button code:
Both
None
Which statement prints “Hello JS”?
print("Hello JS");
console.log("Hello JS");
log("Hello JS");
document.write.log("Hello JS")
HTML5 audio tag:
CSS class selector:
.className
#className
%className
@className
HTML attribute to upload file:
type="upload"
type="file"
type="browse"
type="document"
Default display of
inline
block
flex
none
Which creates horizontal line?
Which CSS unit is relative to parent font size?
px
em
cm
mm
Correct HTML5 video embed:
To span rows in table:
rowspan
row-merge
joinrow
rowspaning
Which CSS is highest priority?
External
Internal
Inline
Browser default
Identify correct CSS float code:
float right;
float="right";
float: right;
right: float;
HTML5 semantic tag NOT used for layout:
JavaScript runs:
On server only
On browser only
Mostly on client side
Only in database
Which tag is used for form grouping?
CSS property for shadow behind box:
shadow
box-shadow
bg-shadow
effect-shadow
Correct table with border code:
1
