WorksheetsWeb 1
Total questions: 15
Worksheet time: 4mins
What is the primary goal of responsive web design?
To create websites that look visually appealing on all devices.
To build websites that adapt their layout and content to different screen sizes and devices.
To use as little code as possible when building websites.
To make websites load faster on mobile devices.
This element is used to create a paragraph of text on websites.
<Fieldset>
<p>
<a>
<body>
What attribute is used to specify the source of an image in the <img> tag?
src
href
alt
link
An element without a closing tag is known as?
Veto element
null element
Void element
<img>
This attribute specifies where to open the linked document.
_blank
target
<a>
href
Which tag is used to create a link in HTML?
<link>
<a>
<url>
<href>
What does the alt attribute in the <img> tag do?
Specifies the image's file path.
Provides alternative text for the image if it can't be displayed.
Sets the alternate image's dimensions.
Creates a link to another page when the image is clicked.
An element that sits within a line of text and only takes up as much width as necessary to contain its content.
line break
Internal element
Inline element
block-level elements
TRUE or FALSE: Both input and button elements are inline elements.
TRUE
FALSE
Which CSS property is used to change the text color?
font-color
text-color
color
textcolor
Which CSS property is used to change the background color?
background-color
bgcolor
background
color-background
Which CSS selector is used to target all elements on a page?
. (dot)
# (hash)
* (asterisk)
> (greater than)
How do you link an external CSS file to an HTML document?
Using the <style> tag in the HTML file.
Using the <link> tag in the HTML file.
Using the @import rule in the CSS file.
Using the @meta rule in the CSS file.
Which of the following HTML snippets has an error?
<p>This is a ParaGraPh.</p>
<h1>This is a heeeAding</h1>
<img src="cat.jpg" alt="A cat/">
<a href="link">Click here
Which CSS rule has a syntax error?
p { color: blue; }
.highlight { background-color: yellow; }
#my-id { font-size: 16px; }
body color: green;
