Computer Final Flashcards

1
Q

What does HTML stand for?

A

Hyper text markup language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What file extension is used with standard web pages?

A

.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What should the first element in any web page?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is not part of an xhtml element?

A

Anchor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

<a>link to page 2</a>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the element <p> stand for?</p>

A

Paragraph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the syntax for an XHTML comment

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

<li>
</li>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What will create a bulleted list?

A

<ul></ul>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is wrong with the following XHTML code?

<a>visit YouTube</a>

A

Http:// is missing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is wrong with the following?

<img></img>

A

It is src not source

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

The web browser will display a distorted version of the image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

.jpg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

File name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which image format can support animation?

A

.gif

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does target=”_blank” do when specified in an <a> element </a>

A

Tells the browser to open a link in a new window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A bookmark link starts with which symbol in the href attribute?

A

#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

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

A

Whatever text is specified in the alt attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What are valid table element Sa?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What element is used to define a column

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is wrong with the following XHTML code?

  row 1 col 1
A

Tr and td need to switch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What will happen if we do not specify the border attribute for a element?

A

The table will show without any cell borders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is wrong with this css code
P {
text-decoration:underline }

A

Missing a semi colon after underline (;)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What does CSS stand for?

A

Cascading style sheet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Where is an internal sale sheet located?

A

In the section of XHTML document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

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

A

The text of all paragraph elements will be blue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Which property determines the font (e.g. Aerial,Tahoma) a text element is displayed in?

A

Font-family

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

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

A

P

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

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

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

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

A

An unlimited number of times for each type of element in the page

31
Q

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

A

Pound sign and colon

32
Q

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

A

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

33
Q

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

<p> this is my <span>first</span>paragraph.</p>

A

The word ‘first’ will display the same as the other text

34
Q

Why is it a bad idea to name a class “underline”

A

Class names should reflect meaning and not describe appearance.

35
Q

Write a single shorthand statement that would accomplish the same as the following 3 CSS lines:
Border-style:solid;
Border-width:3px;
Border-color: red;

A

{ border:3px,solid,red }

36
Q

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

A

Background-color:

37
Q

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

A

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

38
Q

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

A

The ID style will be applied

39
Q

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

A

Margin,border,padding,content

40
Q

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

A

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

41
Q

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?

A

240px

42
Q

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

A

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

43
Q

What is the purpose of clearing a float?

A

Help To display the next content below the floating content.

44
Q

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

A

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

45
Q

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

A

An end tag starts with a forward slash.

46
Q

Which is not a valid location for CSS declarations

A

CSS div after the opening tag

47
Q

What type of content can be placed into a table cell element

A

Text,links,and lists only

48
Q

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?</div>

A

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

49
Q

The key difference between html and XHTML is

A

XHTML is stricter in enforcing rules than html

50
Q

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

A

(And symbol)lt;p(and symbol)gt;

51
Q

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

A

a:hover

52
Q

If you were on a web page and some of the links looked blue and some looked purple, what is the most likely explanation for this?

A

The purple links are sites that you have already visited

53
Q

What is the perferred way to italicize text in your web page

A

By using= font-style: italic; in CSS

54
Q

What is true about XHTML comments?

A

They can be read by anyone who views the source code in their browser., they help web designers understand other designers’ code., they can span multiple lines without causing errors.

55
Q

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

A

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

56
Q

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

A

It has limited color support

57
Q

What can we use to indicate that the cells in the first row of a table are labels for the data

A
58
Q

What is a direct benefit of using CSS

A

Gaining more control over how we style our web pages
The ability to make multiple changes to a website from a single location
Separating the content of our web pages from its presentation

59
Q

If you wanted to add a foot note reference like this^1 to a word, what element would you use?

A

60
Q
Put the following in order in which they would appear in an XHTML document order 1-6
/head
title
/HTML
DOCTYPE
body
p
A

1.DOCTYPE 2. Title 3. /head 4. body 5. p 6. /HTML

61
Q

What is the CSS code to make all <h2> headings display centered and in green </h2>

A

h2 {
Text-align: center ;
Color: green ;
}

62
Q

Write the CSS code to creat a new class called ‘newclass’. Define the dimensions as 300 by 300 pixels with 10 pixels of padding on all sides:

A

.newclass {
Width: 300 px ;
Height: 300px ;
Padding: 10px ; }

63
Q

RGB stand for?

A

Red, green, blue

64
Q

To increase the color blue in the hex code #AA3450, you could use which code?

A

AA34AA

65
Q

What is the primary reason we are limited in the fonts we can use on our web pages

A

We are restricted to those fonts installed on our viewers’ computers

66
Q

Which of the following is a common sans-serif font

A

Verdana

67
Q

What is not true about declaring fonts for our web pages

A

Fonts should be listed in reverse order of preference

68
Q

What is an effective way guarantee that an unusual font will display on our page

A

Place the text into an image and display the image on the page

69
Q

Why is it important to validate our XHMTL pages

A

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

70
Q

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

A

It is based on what we specify in the DOCTYPE statement the validator program will list the line numbers and errors detected

71
Q

Write the CSS to make paragraph text display in century Gothic font. If that font is not available, make Tahoma and san-serif as the back up fonts, in that order

A

P {

Font-family:”century gothic”, “Tahoma”, San-serif;}

72
Q

What does the style sheet statement belong

A

Between and

73
Q

Which of the following would be out of place in an external CSS style sheet

A