Internal and External Links

Slides:



Advertisements
Similar presentations
XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
Advertisements

Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
Links and Comments.
New Perspectives on Creating Web Pages with HTML
XP Adding Hypertext Links to a Web Page. XP Objectives Create hypertext links between elements within a Web page Create hypertext links between Web pages.
Web Structure Create Links Using HTML. 2 Objectives List different types of Web site structures and how to employ them Create element ids to mark specific.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
Announcement #1 1 Lecture 9. Announcement #2  Midterm exam will be on Oct. 12 (Tuesday)  pm – 1.45 pm  Exam will cover all materials till Oct.
XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
Chapter 14 Introduction to HTML
XP Tutorial 2New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Shows the entire path to the file, including the scheme, server name, the complete path, and the file name itself. Same idea of stating your full name,
CNIT 132 – Week 3 HTML (2). Working with Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down. A.
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Lesson 6 Links. Creating Folders  For every web site/page, you need to create a separate folder  The computer cannot find links if they are not stored.
Mohammed Mohsen Links Links are what make the World Wide Web web-like one document on the Web can link to several other documents, and those.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
Web Design (5) Navigation (1). Creating a new website called ‘Navigation’ In Windows Explorer, open the folder “CU3A Web Design Group”; and then the sub-folder.
XP 1 New Perspectives on Creating Web Pages with HTML Adding Hypertext Links to a Web Page.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Developing a Web Site. Web Site Navigational Structures A storyboard is a diagram of a Web site’s structure, showing all the pages in the site and indicating.
 The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:
WEB DESIGN UNIT 2 Unit 2 Module 2-5. WHAT HAVE YOU LEARNED?  What is the title tag do? Where does it show?  What are the tags that need to be on every.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 2 1 New Perspectives on Creating Web Pages With HTML Tutorial 2: Adding Hypertext Links to.
Enhancing Your Web Site—Adding Links Web Page **YOU MUST HAVE COMPLETED THE 1ST 3 WEB PAGES BEFORE YOU CAN DO THIS ONE. **YOU SHOULD HAVE COMPLETED THE.
Adding Links Learning Web Design: Chapter 6. Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to.
Creating Links. The Anchor Element: The anchor tag can be used in three different ways: 1.External link – to link to a web page outside your own website.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
UNIT 2 UNIT 2 Module 3: HTML Lists Overview. List There are two common types of HTML lists Ordered list numbered Unordered list bullet points.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
XP INFT 140 – Chapter 2 1 Developing a Basic Web Site Creating a Chemistry Web Site.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Lesson 6 Links. Creating Folders  For every web site/page, you need to create a separate folder  The computer cannot find links if they are not stored.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
Developing a Basic Web Site HTML Tutorial 2. Objectives Define links and how to use them. Create element ids to mark specific locations within a document.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
XP 1 Charles Edeki AIU Live Chat for Unit 2 ITC0381.
Web Page Design XHTML Lesson 4. Adding Structure 4 A div tag –Used to divide up a web page and to add structural meaning to the page. –Will not change.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
Hyperlinks Links for Other Pages. Hyperlink (aka Link) Text (or image) user can click Takes user to different location In general, location can be: On.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
4.01 How Web Pages Work.
HTML Links CS 1150 Spring 2017.
4.01 How Web Pages Work.
HTML Basics.
4.01 How Web Pages Work.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Web-based structures, links and testing
ET710 What are Hyperlinks? A hyperlink, or hot link, is a selectable element in an electronic document that serves as an access point to.
Developing a Basic Web Site
Internal and External Links
Links and Comments.
Web Design and Development
CNIT 131 HTML5 – Anchor/Link.
Links and Comments.
Lesson 4: Hyperlinks.
Links and Comments.
Adding Links Chapter 6 4/9/2019.
Links and Comments.
4.01 How Web Pages Work.
HTML Links CS 1150 Fall 2016.
4.01 How Web Pages Work.
Website File Management
Presentation transcript:

Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials

Objectives The Student will: Understand the parts of a web address. Be able to create a link to another web page on the Internet. Be able to create a relative link from one page to another within your website.

Web Links The World Wide Web was built on the principal of hypertext. Prior to hypertext, documents were all standalone. They might refer to each other in text, but there was no direct connection between one document and another. With hypertext, readers were suddenly able to quickly jump from one document to another This revolutionized the way we access information.

URLs – Uniform Resource Locator Links to web pages refer to the address, or URL (Uniform Resource Locator), of the web page. URL's consist of various parts. Consider the URL: http://www.washington.edu/accessit/webd2/student/index.html This URL consists of four parts, separated by forward slash (/): http:// - This is the Internet protocol, and tells the browser how to connect with the server hosting the URL. Most documents on the web begin with http://, but they might also begin with https://, ftp://, telnet://, or others. www.washington.edu - Domain name where the file is located. /accessit/webd2/student/- folder or directory where the file is located index.html - the filename

Adding an External Link to an HMTL file External Links are inserted into a document using the <a> tag which stands for "anchor". This tag by itself does nothing. <a>This is a link to nothing</a> At a minimum, it requires the "href" attribute, which defines the destination of the link. <a href = "document location"> Then you have the text you want to be the hyperlink and then close the a tag with </a> <a href="http://www.somedomain.com/somedirectory/somefile.html">This is the text that users click on</a>

Linking to the Hancock Web Page When you link to external websites, you use an absolute path, as in the following example: <a href ="http://www.hancockhs.org">Hancock High School</a> Note that the destination path (contained within quotes) gives the browser complete directions to locate the web page. If you were to copy all the characters between the quotation marks and insert them into the address bar of a browser, the browser would open the website. This type of link is referred to as an absolute address because it is the full address of the web page.

Linking to Pages Within Your Website The link to Hancock home page is an absolute address (the full address to the school website). Now you will learn to make links to pages within your own website, using a relative address.

Relative Addresses A relative address is one that refers only to a portion of the web address, rather than to the full address. For example, assume you are webmaster of the domain mydomain.com, and want to add a link from http://www.mydomain.com/file1.htm to http://www.mydomain.com/file2.htm. In file1.htm, you don't need to link to the full address. You can simply link to the file name (file2.htm), since both files are located in the same place. A relative address is an address that is relative to the location of the linking file.

Using Relative References In your web page you have an unordered list that contains list items for your navigation menu (Home, Accessibility, Usability, Graphics, Javascript and Tools). Turn these list items into links, as in the following example: <a href=“accessibilty.html">Accessibility</a> Note that the destination path ("accessibilty.html") gives the browser directions starting from the current folder. This type of link is called a relative address because the entire address is relative to the location of the current file. Since index.html and accessibilty.html both exist in the same folder, there is no need to spell out an entire URL. If you had saved accessibilty.htm in a subfolder (for example, the "accessibilty" subfolder, you could still link to this file using a relative address; you would just need to include the subfolder in the address, like this: accessibilty/accessibilty.html.

<a href=“accessibilty.html">Accessibility</a> Summary Reference Absolute Addresses with the entire URL <a href ="http://www.hancockhs.org">Hancock High School</a> Reference Relative Addresses from the location of the current page <a href=“accessibilty.html">Accessibility</a> The name of the file The text that appears on the web page

Your turn… Add the link to the Hancock Homepage to your index.html file. Add links to Home, Accessibility, Usability, Graphics, Javascript and Tools in your navigation menu. Example: <li> <a href="accessibility.html">Accessibility</a> </li> Open your index.htm file and check your links.

You web page should look like this: Links need to work!