Exam 1 Answers Flashcards

1
Q

T/F The most common way of accepting user input is through a web form

A

T

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

Write the HTML code to create a paragraph element with “Hello World” as the text:

A

< p > Hello World < /p >

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

a(n) ___ includes the blank spaces, tabs, and line breaks found within the file

a) black-space character
b) blank-space character
c) empty-space character
d) white-space character

A

c) empty-space character

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

the style rule
ul { list-style-image: url(redball.png); }
displays items from ___ lists marked with the graphic image in the redball.png file.

a) structured
b) ordered
c) unordered
d) unstructured

A

c) unordered

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

fill in the blank in the following CSS code to change the background of the document to the color blue

A

body {background-color: blue;}

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

___ is the current version of HTML

a) HTML 4.01
b) HTML 5
c) DHTML
d) XML

A

b) HTML 5

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

t/f JS written inside HTML document is an example of server-side scripting

A

f

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

the “D” in DHTML stands for

a) Duo
b) Dictionary
c) Deprecated
d) Dynamic

A

d) Dynamic

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

a “reset” input element will clear other input elements as long as it is placed inside the same ___

a) body
b) head
c) table
d) form

A

d) form

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

a ___ layout sets the width of the page elements as a percent of the available screen width

a) fixed
b) elastic
c) fluid
d) modified

A

c) fluid

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

t/f in the background-attachment property, the “fixed” type creates a background that stays in place… element content is scrolled horizontally or vertically.

A

t

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

individual items in a list are created using the ___ element

a) il
b) ol
c) ul
d) li

A

d) li

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

which of the following is an inline element

a) < hr >
b) < img >
c) all of these
d) < p >

A

b) < img >

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

a(n) ___ element has no text mark up

a) blank
b) null
c) empty
d) HTML

A

c) empty

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

which of the following CSS 3 filters applies transparency to an image

a) opcacity
b) invert
c) blur
d) gray scale

A

a) opcacity

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

the ___ value of the overflow style keeps an element at a specific size, adding scroll bars only as they are needed.

a) visible
b) scroll
c) hidden
d) auto

A

d) auto

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

since the li element is itself a grouping element, is can be used to group other lists, which in turn creates a series of ___

a) nested lists
b) separated lists
c) navigation lists
d) ordered lists

A

a) nested lists

18
Q

the WWWC enfocrced a stricter set of standards in a different version of HTML called ___

a) DHTML
b) HTML 4,01
c) XHTML
d) XML

A

c) XHTML

19
Q

T/F 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

t

20
Q

a ___ language is a language used to describe the content and structure of documents

a) lexical
b) markup
c) parsing
d) validation

A

b) markup

21
Q

which of the following elements can be used to “float” a block-level element to the left or might of another element?

a) p
b) margin
c) head
d) div

A

d) div

22
Q

write the HTML code to create the largest heading with the text “Welcome to My Website!”

A

< h1 > Welcome to My Website < /h1 >

23
Q

an often-used empty element is a(n) ___ element, which creates a dividing line to indicate a new section or topic change within a web page.

a) anchor
b) img
c) horizontal rule
d) div

A

c) horizontal rule

24
Q

you can insert a comment in HTML using ___

a) < !–comment – >
b) –comment>
c)
d)

A

a)

25
Q

a(n) ___ list is used to display information in sequential, numbered order.

a) tasks
b) ordered
c) bulleted
d) reference

A

b) ordered

26
Q

t/f to specify a different stacking order for elements, the slip-index property can be used

A

f

27
Q

to link to the URL for a website, you would use ___.

a) < a href=”URL” >
b) href:url
c) call:< URL >
d) < a URL: “number”>

A

a) < a href=”URL” >

28
Q

t/f web page layouts fall into three general categories: fixed, fluid, and elastic

A

t

29
Q

when JS is written in an HTML, document and executed locally by the browser, it is referred to as ___ -side scripting.

A

client

30
Q

once a CSS grid is established, a specific element within a ___ is placed at the intersection of a specified row and column.

a) —
b) sibling element
c) stack
d) grid cell

A

d

31
Q

unlike an external style sheet, a(n) ___ style sheet is applied only to the elements within the web page in which it is placed

a) internal
b) intergrated
c) —
d) embedded

A

d) embedded

32
Q

___ are programs that test web page code to ensure that it contains no syntax errors.

a) validators
b) qualifiers
c) endorsers
d) testers

A

a) validators

33
Q

the ___ element contains the content of a web page

a) DOCTYPE
b) main
c) body
d) head

A

c) body

34
Q

the text- size is defined using the ___ property.

A

font-size

35
Q

t/f embedded styles apply to the HTML documents in which they are created .. are accessible to other documents on the webserver.

A

f

36
Q

t/f user-defined styles can be supported by external style, which are the styles that a website author creates and place with a CSS file and links to the page

A

t

37
Q

if two tyles rules have equal specificity and thus equal importance, then the one that is defined ___ in the style sheet is the one used

a) first
b) third
c) last
d) second

A

c) last

38
Q

when sizing elements in an HTML page, it is best to use ___ sizing when possible

a) relative
b) static
c) absolute
d) dynamic

A

a) relative

39
Q

___ lists are used for listing items without and sequential order

A

unordered

40
Q

___ an element takes it out of position and places it along the left or right edge of its parent element

A

floating