Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

COMP 126 MIDTERM QUESTIONS & ANSWERS

Document preview thumbnail
Preview 2 out of 9 pages

COMP 126 MIDTERM QUESTIONS & ANSWERS When you set position: relative; on an element, what is that element being positioned relative to? a. the four edges of the browser window b. wherever the element would end up in the normal flow of the document c. the next nearest element d. the next nearest block element - Answer -b. wherever the element would end up in the normal flow of the document

Content preview

COMP 126 MIDTERM QUESTIONS & ANSWERS

If you don't explicitly set a value for the position property of an element, what value will it
have?
a) No position values
b) Position: absolute;
c) Position: relative;
d) Position: static; - Answer -d) position static

How do elements behave in what we call the "normal (or natural flow of the document"?
a. they stack top to bottom
b. they flow left to right
c. they flow left to right & top to bottom
d. they overlap unless directed otherwise - Answer -c. they flow left to right & top to
bottom

Which position value leaves an element in the normal/natural flow of the document?
a. static
b. relative
c. fixed
d. absolute - Answer -a. static

When you set position: relative; on an element, what is that element being positioned
relative to?
a. the four edges of the browser window
b. wherever the element would end up in the normal flow of the document
c. the next nearest element
d. the next nearest block element - Answer -b. wherever the element would end up in
the normal flow of the document

When you set position: abolute; on an element, what is that element positioned in
relation too?
a. it's parent element
b. the viewport
c. the browser window
d. the elements nearest neighbor - Answer -a. it's parent element

Which of the following must also happen in order to absolute-ly position an element?
a. the element must be a block-level element
b. the element must be an inline element
c. the element cannot have any child elements
d. the elements parent element must also be given a position value - Answer -d. the
elements parent element must also be given a position value

, What position value do you set on an element to position it relative to the four sides of
the viewport?
a. relative
b. absolute
c. fixed
d. static - Answer -c. fixed

When you apply a position value, what should you generally also provide to position the
element where you want it?
a. the elements offset values
b. the elements height & width
c. the elements priority in the cascade
d. the elements z-index value - Answer -a. the elements offset values

the z-index property controls which element will end up on top in the case of element
overlap.
- true
- false - Answer -true

which of the following can be used to create a nabber that stays in place on the page
even when the user scrolls?
a. position: absolute;
b. display: visible:
c. position: fixed;
d. display: block; - Answer -c. position: fixed;

What happens to an absolutely positioned element when when a user scrolls the web
page?
a. it stays in place no matter what the user does
b. it scrolls along with it's parent element
c. it disappears until the user stops scrolling
d. it floats - Answer -b. it scrolls along with it's parent element

HTML stands for - Answer -Hyper Test Markup Language

Does spacing matter in an html document?
a. no
b. yes - Answer -a. no

What do HTML elements use tags for?
a. to structure content
b. to make content noticeable
c. to build content - Answer -a. to structure content

HTML & CSS are a collection of ___ and ___
a. web standards

Document information

Uploaded on
August 15, 2025
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GEEKA
3.8
(363)
Sold
2147
Followers
1448
Items
59408
Last sold
3 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions