1 / 8

Relative & Absolute Links & Inserting Images

Relative & Absolute Links & Inserting Images. A Quick Introduction. Absolute Link. Absolute Link – a full URL to a file or website <a href =http://www.mywebsite.com/resume.html>Resume</a> <a href =“http://www.google.com”>Google</a>. Relative Link.

lamya
Télécharger la présentation

Relative & Absolute Links & Inserting Images

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Relative & Absolute Links & Inserting Images A Quick Introduction

  2. Absolute Link • Absolute Link – a full URL to a file or website <a href=http://www.mywebsite.com/resume.html>Resume</a> <a href=“http://www.google.com”>Google</a>

  3. Relative Link • Relative Link – the location of a file you want to link to in relation to the page currently being viewed • For example, you want to link from your home page to your resume page, and both of these documents are saved in the same folder <a href=“resume.html”>Resume</a>

  4. Relative Link • What if the document isn’t saved in the same folder? • For example, you want to link to a PDF that is saved in a subfolder of the current folder the web page you are on is saved in: <a href=“/Chapter2/Part1/page23.pdf”>Helpful PDF </a>

  5. Relative Link • What if you need to leave the current folder and go up to a higher level folder to reach the document you need to link to? <a href=“../home.html”>Home Page</a> • The two dots indicate to the browser to look up one level from the current folder (and in this case, then find the home.html document)

  6. Relative Link • What is the path that will result from this relative link? <a href=“../images/map.jpeg”>Enlarged Map</a> It will go up one level, look for the images folder, go into images folder, find map.jpeg file

  7. Examples of Relative Links

  8. Images • You can very easily insert images into your web pages using the following tag: <imgsrc=“logo.gif” height=“200” width=“500” alt=“My Company Name” /> • img = image, src = source, alt = text to show if image won’t load or for persons with disabilities using screen readers, alternate text will be read

More Related