CTI 110 Exam 2
.main-list ll {
} - ANS-What is the correct syntax to select an element inside another element?
<h1> elements will have 20 pixels of space between every letter. - ANS-How does this CSS rule
set affect <h1> elements?
h1 {
letter-spacing: 20px;
}
<input type="text" name="UserName" value="Enter Name Here"/> - ANS-Consider the following
code for a text box in a Web form:
<input type="text" name="UserName"/>
Which modified tag should you use if you want the text box to appear with default text that reads
"Enter Name Here"?
<input> - ANS-How do we pre-populate a form input field with some text?
<link href="main.css" type="text/CSS" rel="stylesheet" /> - ANS-You wish to link a CSS file
called main.css to an HTML file. Which of the following lines of code correctly links the HTML
file and the stylesheet?
<select name="work" multiple="multiple" size="4"> - ANS-Which line of HTML code creates a
multiple-option select list in a Web form?
<select name="work" multiple="multiple" size="4"> - ANS-You are creating form fields in a Web
page. Which attribute should you include in the <input> element to specify the type of form fields
that will appear in the form?
<select name="work" multiple="multiple" size="5"> - ANS-In the Web form you are creating, you
want a multiple-option select list to appear with five options. Which line of HTML code will help
accomplish this?
<TITLE> - ANS-The ________________ element specifies text that appears in the title bar of
the web browser opening the page.
147 pixels - ANS-What is the total height of a .box element with the CSS properties below?
.box {
border: 1px solid black;
padding: 10px;
height: 125px;
, }
30 pixels - ANS-In the sample code below, the element with ID "one" is directly above the
element with ID "two" in the HTML document. How much space is between the border of
element "one" and the border of element "two"?
#one {
margin: 20px;
}
#two {
margin: 30px;
}
A valid selector and a set of curly braces ( {} ) surrounding the declarations. - ANS-Assuming
the declarations inside are valid, what else is needed to complete a CSS rule set?
a, <a></a> - ANS-To create a link, you enclose the text or other element within an a element
using the ____ tag pair
Absolute - ANS-Which of the following values will position an element in relation to the nearest
non-static element?
Angle brackets <> - ANS-All web forms are surrounded by ____________ tags
B. #side-bar {
} - ANS-What is the most specific selector in the code below?
p{
}
#side-bar {
}
.main-content {
}
.main-content p {
}
background-image = "image.jpg"; - ANS-Which of the following will set an element's background
to an image?
body h1 {
color: #B4F;
} - ANS-How could this code be re-written but guarantee the same appearance in the browser?
body h1 {
color: #BB44FF;
}
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller CHichii. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.