Single Choice Easy

QWhich of the following attributes enables you to determine the location of an element in relation to the browser window?

ID: #5131 Javascript DOM & Event Handling MCQ 131 views
Question Info
#5131Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A relative
  • B fixed
  • C static
  • D absolute
Correct Answer

Explanation

You can specify an element's location in relation to the browser window using the fixed value.
Fixed placement elements are always displayed and do not scroll with the document as a whole.
Similar to elements that are absolutely positioned, elements in fixed positions exist independently of one another and do not move with the rest of the document.

Share This Question

Challenge a friend or share with your study group.