1/9
What does HTML stand for?
Hyper Text Markup Language
Which of the following is an example of metadata about a webpage
a) The title of the webpage
b) The body of the webpage
c) A <h1> tag on the webpage
d) All of the above
a) The title of the webpage (Why?: Metadata is data about data. The webpage is the data, and the title describes the webpage, so the title is data about data)
True or False: As long as you cite your sources, you can put any image you find online on your website.
False (Why?: Depending on the copyright license that the author has, you might not be able to put their image on your website.)
Which of the following HTML code snippets is the proper way to set the background color of an <h1> tag to be blue?
a)<blue><h1>Hello</h1></blue>
b)<h1 background-color=“blue”>Hello</h1>
c)<h1 style=“blue”>Hello</h1>
d)<h1 style=“background-color:blue;”>Hello</h1>
d) <h1 style=“background-color:blue;”>Hello</h1>
What is the function of the Cascade in CSS?
The Cascade determines which CSS rules will be applied when multiple rules for an item are contradictory.
In what order does the Cascade look at factors to determine which CSS rule to follow?
Importance, Specificity, Order
True or False: It is possible to embed any website inside IFrames.
False (Why?: For security reasons, some sites won’t allow themselves to be embedded inside IFrames.)
What is the difference between <span> and <div>?
<span> is used to group and style inline elements, while <div> creates a line break
Which of the following selects all <p> tags with the class alert and makes them red?
a) p.alert { color: red; }
b) .alert p { color:red; }
c) p alert { color:red; }
a) p.alert { color: red; }
How can I select all <h1> tags that are immediate children of <div> tags?
a) div h1 { … }
b) div > h1 { … }
c) div { h1 { … } }
d) .h1 div { … }
b) div > h1 { … }