Exam 1 Answers Flashcards
T/F The most common way of accepting user input is through a web form
T
Write the HTML code to create a paragraph element with “Hello World” as the text:
< p > Hello World < /p >
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
c) empty-space character
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
c) unordered
fill in the blank in the following CSS code to change the background of the document to the color blue
body {background-color: blue;}
___ is the current version of HTML
a) HTML 4.01
b) HTML 5
c) DHTML
d) XML
b) HTML 5
t/f JS written inside HTML document is an example of server-side scripting
f
the “D” in DHTML stands for
a) Duo
b) Dictionary
c) Deprecated
d) Dynamic
d) Dynamic
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
d) form
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
c) fluid
t/f in the background-attachment property, the “fixed” type creates a background that stays in place… element content is scrolled horizontally or vertically.
t
individual items in a list are created using the ___ element
a) il
b) ol
c) ul
d) li
d) li
which of the following is an inline element
a) < hr >
b) < img >
c) all of these
d) < p >
b) < img >
a(n) ___ element has no text mark up
a) blank
b) null
c) empty
d) HTML
c) empty
which of the following CSS 3 filters applies transparency to an image
a) opcacity
b) invert
c) blur
d) gray scale
a) opcacity
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
d) auto
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) nested lists
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
c) XHTML
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
t
a ___ language is a language used to describe the content and structure of documents
a) lexical
b) markup
c) parsing
d) validation
b) markup
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
d) div
write the HTML code to create the largest heading with the text “Welcome to My Website!”
< h1 > Welcome to My Website < /h1 >
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
c) horizontal rule
you can insert a comment in HTML using ___
a) < !–comment – >
b) –comment>
c)
d)
a)
a(n) ___ list is used to display information in sequential, numbered order.
a) tasks
b) ordered
c) bulleted
d) reference
b) ordered
t/f to specify a different stacking order for elements, the slip-index property can be used
f
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 href=”URL” >
t/f web page layouts fall into three general categories: fixed, fluid, and elastic
t
when JS is written in an HTML, document and executed locally by the browser, it is referred to as ___ -side scripting.
client
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
d
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
d) embedded
___ are programs that test web page code to ensure that it contains no syntax errors.
a) validators
b) qualifiers
c) endorsers
d) testers
a) validators
the ___ element contains the content of a web page
a) DOCTYPE
b) main
c) body
d) head
c) body
the text- size is defined using the ___ property.
font-size
t/f embedded styles apply to the HTML documents in which they are created .. are accessible to other documents on the webserver.
f
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
t
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
c) last
when sizing elements in an HTML page, it is best to use ___ sizing when possible
a) relative
b) static
c) absolute
d) dynamic
a) relative
___ lists are used for listing items without and sequential order
unordered
___ an element takes it out of position and places it along the left or right edge of its parent element
floating