+ 1
What do absulte and relative mean?
6 ответов
+ 1
@Simon Otter please explain what you comment in simple..I am beginner and not able to understand..sorry for it..but I want to know what is relative link and what is absolute link.....
0
@Jorge absolute is the full path eg: www.bbc.co.uk/sport/tennis/index.html
A relative path, is relative to the current html file eg: if the current file is the index file from the above example and we wanted to link to football we could do ../football/index.html
0
What I've understood in mr Simon's answer, absolute is from a certain web address or from a fixed directory from your device such as: D:\Documents\images\image.jpg
While relative do not have the root directory such as: ../../images/image.jpg
0
@Siddhartha Shukla
The two dots in ../football/index.html means that you go up a directory.
0
Absolute and Relative elements works in the same way, nonetheless, the vital difference is their starting point. The absolute element works it's way with its parent element until it is given a value, in that case, it resets it's value making other absolute elements adjust their position, however, a relative element is independent and does not affect the positioning of other elements whatsoever. Both absolute and relative elements are not affected by other elements in context with overlapping and positioning but the non-static items are removed if they are absolutely positioned while relatively positioned items occupy their original position. Static or fixed elements remains unchanged, irrespective.
0
relative is like parent and absolute is like child absolute is use to fix position with relative anything anywhere in webpage. like we want to write any thing on image we make image relative and text absolute and we write anywhere text on image. text position fix on image.