Web Design Final

¡Supera tus tareas y exámenes ahora con Quizwiz!

If you wanted to display the actual characters <p> on your webpage, which would accomplish this?

&lt; p&gt;

What is the correct CSS code for inserting a background image called bg-1.jpg to a class called background?

.background {background-image: url (bg-1.jpg) }

Which image format can support animation?

.gif

Which file extension is used with standard web pages?

.html

What is generally considered the best format to use for color photographs on the web?

.jpg

Which character is used to indicate an end tag?

/

How do you insert a comment in your CSS?

/* this is a comment*/

If we applied the CSS style {padding: 10px 0px;} to a div element, what would happen?

10 pixels of padding would be added to the top and bottom of the div.

If a div has a defined width of 200px, a border of 5px, padding of 10px, and a margin of 5px, what would be the overall width taken up by the div element on the screen?

240px

What is the syntax for an HTML comment?

<!-- This is a comment -->

What is the correct HTML for creating a hyperlink?

<a href="http://www.w3schools.com">W3Schools</a>

How would you create a link to another web page named "page2.html"?

<a href="page2.html">Link to Page 2</a>

What is the correct HTML element for inserting a line break?

<br>

Choose the correct HTML element to define emphasized text.

<em>

Choose the correct HTML element for the most important heading:

<h1>

What should be the first element in any web page?

<html>

What is the correct HTML for inserting an image?

<img src="image.gif" alt="My Image" height="560" width="315">

What is the start tag for an individual item in a list?

<li>

Which of the following is not an HTML element related to displaying lists?

<list>

Which of the following will create a numbered list?

<ol>

Choose the correct HTML element to define important text

<strong>

Which HTML tag is used to define an internal style sheet?

<style>

If you wanted to add a footnote reference like this "" to a word, which element would you use?

<sup>

The correct syntax for using a colspan attribute in an HTML document is:

<td colspan="3">

Which element is used to define a table column?

<td>

Which of the following can we use to indicate that the cells in the first row of a table are labels for the data below and should be formatted differently?

<th>

Which element is used to define a table row?

<tr>

Which are all valid table elements?

<tr>, <th>, and <table>

Which of the following will create a bulleted list?

<ul>

Which of the following statements is incorrect?

A lower header element, such as <h4>, should not be used unless all the higher ones, <h1> through <h3>, have been used first.

What is the difference between a start tag and an end tag?

An end tag starts with a forward slash

How many times can a CSS class be applied to elements in an HTML document?

An unlimited number of times for each element in the page

What does CSS stand for?

Cascading Style Sheets

Why is it a bad idea to name a class "underline"?

Class names should reflect meaning and not describe appearance.

Which of the following is not true about declaring fonts for our web pages?

Fonts should be listed in reverse order of preference

What does HTML stand for?

Hyper Text Markup Language

How can setting table column widths by percent hold an advantage over setting them by pixels?

If the overall table width is modified, the column widths will be modified in the same proportion.

If we floated one div to the right and another to the left, where would the next page content display on the page?

In between the two divs, but only if there is sufficient space.

Where is an internal style sheet located?

In the <head> section of the HTML document

Why is the .gif format such a poor choice for a photographic image?

It has limited color support

WHy is it important to validate our HTML pages?

It improves the likelihood that our web pages will display consistently to visitors.

How does the HTML validator know which rules apply to our web document?

It is based on what we specify in the DOCTYPE statement

Which HTML elements can be floated right or left on the page?

Many elements, including both the <div> and <img> elements.

Going from the outside in, what is the order of components in the box model?

Margin, border, padding, content

What would happen if we use CSS to set both a background image and a background color for the same element?

Only the background image will show, unless the image cannot be found, in which case the background color will show.

What does the element <p> stand for?

Paragraph

CSS classes and IDs are defined by which starting character, respectively, in the <style> section?

Period and Pound Sign (. and #)

RGB stands for:

Red, green, blue

What CSS technique could we use to force a <div> element to center itself horizontally in the browser window, no matter what the screen dimensions are?

Set the right and left margins of the <div> to auto.

What does target="_blank" do when specified in an <a> element?

Tells the browser to open a link in a new window.

What type of content can be placed into a <td> table cell element?

Text, links, lists, and images

If a CSS class and a CSS ID are both assigned to the same page element, and each specifies a different text color, which of the styles will apply?

The ID style will be applied.

Which is not a direct benefit of using CSS?

The ability to place tables and images into our web pages

What will happen if we try to apply more than one class to the same, specific HTML element?

The styles of all the classes will be combined and applied.

What will be the result if the following CSS code is applied to a web page? p { color:blue; }

The text of all paragraph elements will be blue.

If our HTML document fails validation, how do we know what was wrong?

The validator program will list the line numbers and errors detected

What will happen if we specify an image's height and width outside of its true original proportion?

The web browser will display a distorted version of the image.

Asuming no CSS styling has been declared, how will the following display on the screen?

The word "first" will display the same as the other text.

Which of the following is not true about HTML comments?

They are required for closing <div> tags to indicate which <div> is being closed.

What is the purpose of clearing a float?

To display the next content below the floated content

Which of the following is a common sans-serif font?

Veranda

What would a blind person hear in a screen reader in the place of a web image?

Whatever text is specified in the alt attribute

When you move your mouse over a web link and it changes color, which CSS property has been set?

a:hover

Which CSS property sets the background color for an HTML element, such as a table row?

background-color:

Which is the correct CSS syntax?

body {color: black;}

Which CSS property is used to change the text color of an element?

color

Which of the following is not an available attribute for the <img> element?

filename

Which property determines the font that a text element is displayed in?

font-family

Using CSS, how do you add a background color to all <h2> elements?

h2 {background-color: #90c3d4; }

Int he following CSS statement, which is considered the selector? p { color:blue; }

p


Conjuntos de estudio relacionados

Chapter 54. Underscoring Meaning: Williams and Music for Film

View Set

Spinal Cord Injury Review (Prep U)

View Set

NUTRI 300: 1.33 Exam #1 - Ch.1, Ch.2, Ch.11

View Set

types of heat and energy transfer

View Set

NEURAL BASIS OF COMMUNICATION Test 1 Per Review

View Set