|
|
HTML lesson - What are URLs?(Note: If you are new to Internet you should first read the URL Basics section, which discusses URLs in general and come back to this page.) What are URLs? This refers to file html_lesson_what_are_urls.php3 located in html subdirectory inside tutorials directory found at www.webdevelopersnotes.com. Note: The domain name www.webdevelopersnotes.com is not case sensitive but the directory and files names are. (This is especially true for Unix based systems). URLs are often used as values for HREF attribute of the <A> tag. Now, if I want to link to the next section (free_html_lesson_how_to_include_images_in_web_pages_part_1.php3) I can use either "http://www.webdevelopersnotes.com/tutorials/html/ free_html_lesson_how_to_include_images_in_web_pages_part_1.php3" or simply "free_html_lesson_how_to_include_images_in_web_pages_part_1.php3". When I want to refer to the homepage of webdevelopersnotes.com from this directory, I use the relative URL "../../index.html" inside HREF. This is a standard Unix notation of referring to URLS. It tells the browser to first come out of the html directory (../) into tutorials directory and from there move, to the next top directory (another ../) which is the root directory of my web-site and then display index.html file. <A HREF="../../index.html">Homepage<A> Homepage will take you to the main page of this web-site.
Page contents: Html lesson - what are urls - online html lesson free - beginners online html free lesson
Page URL: http://www.webdevelopersnotes.com/tutorials/html/ html_lesson_what_are_urls.php3
|
|