Font size
WorksheetsHTML & CSS Review
Total questions: 20
Worksheet time: 25mins
Which tags go around the entire HTML document?
<body></body>
<html></html>
<head></head>
<h1></h1>
What file extension do you need for HTML files?
.css
.js
.txt
.html
Which attribute do you use to specify a URL for an anchor tag?
src
href
dog.jpg
http://google.com/
In CSS, which selector would you use to select a paragraph with a class of "bright"?
.bright
#bright
bright.p
p bright
Which tag should be a direct child of an unordered list?
<ul>
<li>
<p>
<body>
Which Bootstrap class would you use to make a div appear as a large banner header?
jumbotron
dirigible
banner
large
In CSS, which selector would you use to style ALL table data elements?
td
.th
tr
#td
Which CSS property changes text color?
text-color
textcolor
color
background-color
Which Bootstrap class would you use on two columns that will each take up equal space in a row?
col-md-4
col-md-3
col-md-2
col-md-6
Which of the following is a proper image element?
<img src="dog.jpg" />
<imag src="google.com">Google</imag>
<a src="http://dog.jpg" />
<img href="dog.jpg" />
In CSS, which selector would you use to select an image with an id of "footer"?
img
footer.img
#footer
.footer
What file extension do you need for CSS files?
.css
.js
.txt
.html
Which of the following is a properly formed HTML element?
<h1>Hello<h1>
<h1 Hello /h1>
<h1>Hello</h1>
<h1>Hello</h>
What is Responsive Web Design?
Using CSS on different parts of a web page
Making HTML elements appear in a grid
Controlling the font size of text on a page
Making web pages look good on all devices
Which HTML element creates hyperlinks?
(a)
Create an HTML paragraph element with text that says "Welcome"
(a)
How could you select an HTML element with an id attribute of "error" in CSS?
(a)
For a text box input element, what should the type attribute be?
text
box
enter
submit
What is an HTML element?
What is an HTML attribute?
