HTML

Position Property:

It defines how html elements can be positioned.
There are five different position values

1.Static:All Html elements are positioned static by default.
             we can not apply position property to these elements.

2.Relative:It is positioned relative to its normal position.
                 By using position properties(top,right,left,bottom) we can change the positio of  elements.

3.Fixed: By using this property we can set an element as fixed.
              if an element is set as fixed then it remains in that position even if we scroll the page also it will be remain same in that position. 

4.Absolute:By using position properties(top,right,left,bottom) we can change the position of elements.

5.Sticky:An element is positioned based on user's scroll position.

EX:Create a web page by using position properties




OUTPUT: