NEW
Font size
WorksheetsHTML and CSS
Total questions: 12
Worksheet time: 6mins
Which of the following is an opening HTML tag?
</html>
<<html>>
<html>
<html/>
Which tag is used to add an image?
<image>
<img>
<<img>>
</image>
Which of the following is the correct way to add an attribute?
<src>
classes:ids
id="title"
<id>
What symbol should you use to target an id in css?
.
+
id
#
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
What symbol should you use to select a class name in CSS?
#
()
.
class
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
Where should you put the link tag to connect your CSS and HTML file?
Between the <head> </head> in HTML
Between the <body> </body> in HTML
None of the above.
Which of the following is the correct CSS link tag?
<link rel="styles" href="stylesheet.css">
<link href="stylesheet">
<link rel="stylesheet" src="styles.css">
<link rel="stylesheet" type="text/css" href="styles.css">
the main heading in a web document?
What is a style sheet?
A style sheet is used to build a consistent, transportable, and well-designed style template.
To create a multicolor text on a web page
It is used to define a container for navigation links
It is used to define content aside from the content
