Test 1 MC CSC 365

Ace your homework & exams now with Quizwiz!

If two CSS declarations conflict, which declarations override the other declarations? a)!important declarations in a web page b)normal declarations in a web page c)normal declarations in a user style sheet d)default declarations in the web browser

a)!important declarations in a web page

The img element is inserted using the empty element tag because it does not enclose any page content, but instead links to an external image file. a)True b)False

a)True

The strong element is an inline element that indicates text of great importance. a)True b)False

a)True

If you set the background color for the body of a page to blue and you don't set the background color for a section within the body, the background of the section will be a)blue b)white c)the background color that's set for the html element d)the browser default color

a)blue

Validating an HTML file a)ensures that the file will render correctly in all browsers b) may help you find errors that are difficult to find any other way c)has to be done before the file is uploaded to a web server d)has to be done for all the pages of a website

b) may help you find errors that are difficult to find any other way

A valid HTML document requires a) a head element and an html element within a body element b)Answer a head element and a body element within an html element c)a head element and an html element within a DOCTYPE declaration d)a head element and a body element with a DOCTYPE declaration

b)Answer a head element and a body element within an html element

The description list uses the li element. a)True b)False

b)False

​Inline images can be turned into links by enclosing the image within opening and closing <img> tags. True b)False

b)False

​The structural element, aside, is content placed at the bottom of the page. a)True b)False

b)False

The code for a list <nav> <ul> <li>October: <a href="speakers/toobin.html">Jeffrey Toobin</a></li> <li>November: <a href="speakers/sorkin.html"> Andrew Ross Sorkin</a></li> </ul> </nav> When this HTML code is rendered in a browser, what is the first link that will be displayed? a)October: Jeffrey Toobin b)Jeffrey Toobin c)November: Andrew Ross Sorkin d)Andrew Ross Sorkin

b)Jeffrey Toobin

To apply the styles in an external style sheet to an HTML document, you need to code a)a style element in the head section b)a link element in the head section c)a style attribute for the body element d)a link attribute for the body element

b)a link element in the head section

If the bottom margin for one element is 1.5em and the top margin for the element below it is 1em, how large is the margin between the two elements when the page is rendered in a browser? a).5em b)1.0em c)1.5em d)2.5em

c)1.5em

Which of the following units is a relative unit of measurement? a)a pixel b)a point c)an em d)an rel

c)an em

By default, which type of element is displayed on a new line? a)all element types b)inline elements c)block elements d)semantic elements

c)block elements

The img element that follows<p><img src="images/logo.gif" alt="Logo"></p> a)displays "Logo" above the image that's retrieved b)displays "Logo" within a p element c)displays "Logo" if the image can't be found d)displays the image as text within a p element

c)displays "Logo" if the image can't be found

The title element in the head section of an HTML document specifies the text a)that's used to refer to the document b)that's used to refer to the application c)that's displayed in the browser's tab for the page d)that's displayed in the status bar of the browser

c)that's displayed in the browser's tab for the page

Which of the following selectors is most specific? a)nav b)a, nav c)a d)a nav

d)a nav

Within a CSS style rule, a declaration consists of a)a selector and a declaration block b)a selector and a value c)a property and a selector d)a property and a value

d)a property and a value

What kind of tag is this?<img src="logo.gif" alt="Logo"> a)an opening tag b)a closing tag c)a complete tag d)a self-closing tag

d)a self-closing tag

What character entity is created by the &nbsp; character? a)& b)© c)® d)a space

d)a space

The <a> element that follows<a href="gallery.html">View our gallery</a> a)displays "gallery" as a link b)displays "gallery.html" as a link c)displays "View our gallery" as plain text d)displays "View our gallery" as a link

d)displays "View our gallery" as a link

If more than one style rule is applied to an element, which style rule is applied? a)the one with the selector that has the highest specificity b)the one with the highest ranking selector type c)the one that's specified last d)the one that's specified first

a)the one with the selector that has the highest specificity

The RGBA and HSLA colors that are available with CSS3 let you specify a)the opacity of the color b)the concentration of the color c)a pattern for the color d)a name for the color

a)the opacity of the color

When you use a Markup Validation Service to validate the HTML for one web page, a)the page won't run in a browser if it isn't valid b)a trivial coding error can cause multiple validation errors c)you can be sure that the validated page will work correctly in all browsers d)you need to validate all pages of your sit

b)a trivial coding error can cause multiple validation errors

In HTML, a numbered list is coded with a)a ul element that contains li elements b)an ol element that contains li elements c)an li element that contains ul elements d)an li element that contains ol elements

b)an ol element that contains li elements

In the box model for an element, the border a)is outside the margin b)is between the padding and the margin c)is inside the padding d)is inside the content

b)is between the padding and the margin

By default, the <br> tag a)breaks a page into two parts b)starts a new line of text c)displays text in bold d)creates a link

b)starts a new line of text

The code for a list <nav> <ul> <li>October: <a href="speakers/toobin.html">Jeffrey Toobin</a></li> <li>November: <a href="speakers/sorkin.html"> Andrew Ross Sorkin</a></li> </ul> </nav> When the list is displayed in a browser, the list items a)will be preceded by numbers b)will be preceded by bullets c)will be preceded by tab characters d)won't be preceded by anything

b)will be preceded by bullets


Related study sets

Economics Chapter Question Ch1-3

View Set

Exam 1 Chapters 1,2,3 Top Gunder

View Set

Abeka 7th Grade History Appendix Quiz V

View Set

The Constitution and American Political Principles

View Set

CH 8: Families [Part 3], CH 8: Families [Part 2], CH 8: Families [Part 1], CH 7: Moral Development [Part 3], CH 7: Moral Development [Part 2], CH 7: Moral Development [Part 1], CH 6: Sexuality [Part 3], CH 6: Sexuality [Part 2], CH 6: Sexuality [Part...

View Set