"A link within a single website can be writtten using a relative URL." | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

"A link within a single website can be writtten using a relative URL."

what's the meaning of this sentence?👀

14th Aug 2020, 4:04 PM
Aya Khalid
Aya Khalid - avatar
2 Antworten
+ 2
If you have a link to another page on your site, you don't need to use the absolute URL of that page. For example, If in a page http://example.com/page/1 and you need to link to http://example.com/page/1/special instead of using the full url you can say. <a href="special"> That is called a relative URL. You can also set the base URL for all links with the <base> tag.
14th Aug 2020, 4:09 PM
Ore
Ore - avatar
0
And we can make this with any URL or not?
14th Aug 2020, 4:35 PM
Aya Khalid
Aya Khalid - avatar