What is a local address and how does it differ from a web address?


#1

Question

This exercise says, “A URL is the web address or local address where a file is stored”. What is a local address and how does it differ from a web address?

Answer

A local address refers to the path to an image, file, or resource that exists on your own computer. A web address on the other hand generally refers to the path to an image, file, or resource that exists externally, on a remote computer.


FAQ: Learn HTML Elements - Intro to HTML - Images
#3

a local file will be relative to the html directory on the server you are hosting the website on and would look like this
/images/bears/brown_bear.jpg


#4

The data which is stored in your computer , shows the like this data is stored in D or E or F etc… When you Browse it , it will show the same address… This is termed as “Local Address”
While when you purchase the domain , the browser show specific ip address which is stored on google ,yahoo etc… This is what we call “Web Address”


#5

what if I wanted to adjust the size of the image or align the image to the centre of the page, is there any code for that?


#6

I believe those functions are available with CSS.


#7

Just like “src” attribute set the image’s source, you can also use other attributes to change the image such as height=" " and width=" "


#8

Gracias por el ejemplo.