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.

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.
In this lecture, you will learn: ❑ How to link between pages of your site ❑ How to link to other sites ❑ How to structure the folders on your web site.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links
Links and Comments.
New Perspectives on Creating Web Pages with HTML
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
HTML Introduction (cont.) 10/01/ Lecture 8, MAT 279, Fall 2009.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
Tutorial 2 Developing a Basic Web Site
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.
CIS101 Introduction to Computing HTML Project Two.
MA10126 Introduction to HTML Gavin Shaddick
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
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.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
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.
Tutorial 2 Developing a Web Site
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.
Tutorial 2 Developing a Basic Web Site. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn how to storyboard various.
XP Creating Web Pages with HTML, 3e1 WEB DESIGN & MANAGEMENT CLASS 5 - 2/26/02 - Agenda Homework discussions FTP issues – If you have FTP issues, please.
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.
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
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.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
XHTML Louise Soe updated September 2009.
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.
Tutorial 2 Developing a Basic Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
HTML, CSS, and XML Tutorial 2 Developing a Web Site.
Tutorial 4: Working with Hyperlinks. Objectives Session 4.1 – Place bookmarks on a Web page – Create a link to a bookmark – Create a link to another Web.
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.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
Tutorial 2 Developing a Basic Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
Chapter 8 Introduction to HTML and Applets Fundamentals of Java.
Adding Links Learning Web Design: Chapter 6. Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to.
Developing a Basic Web Site
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
XHTML Hyperlinks. Creating Links to Other Web Pages A link, or hyperlink, is a specially formatted Web page object that the user can click to open a different.
XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
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.
Tutorial 2 Developing a Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
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.
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 Links HTML uses a hyperlink to another document on the Web.
Developing a Basic Web Site Maureen Smith Professor, Saddleback College Tutorial 2.
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.
Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
XP 1 Charles Edeki AIU Live Chat for Unit 2 ITC0381.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
Links and Comments in HTML5
Developing a Basic Web Site
Internal and External Links
Internal and External Links
CNIT 131 HTML5 – Anchor/Link.
HTML Introduction Lecture 8.
Presentation transcript:

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 Review basic Web page structures Create hypertext links to Web pages on the Internet Distinguish between and be able to use absolute and relative pathnames Create hypertext links to various Internet resources, including FTP servers and newsgroups

XP Creating a Hypertext Document Hypertext documents contain hypertext links, items that you can select to view another topic or document, often called the destination of the link. These links can point to: –another section –the same document –to a different document –to a different Web page –to a variety of other Web objects

XP Creating Anchors The tag creates an anchor, text that is specially marked so that you can link to it from other points in a document. Text that is anchored is the destination of a link; it is not the text you click on. Each anchor has its own anchor name, using the “name” attribute i.e. Classes. An anchor doesn’t have to be text. You can mark an inline image as an anchor. Adding an anchor does not change your document’s appearance in any way. It merely creates locations in your Web page that become destinations of links.

XP Creating Links To create a link to an anchor, use the same tag you used to create the anchor. The tags used to create links are sometimes called link tags. Use the href attribute, which is short for Hypertext Reference, to indicate the location to jump to. –href can refer to an anchor that you place in the document or to a different Web page or a resource anywhere on the Internet –it is important to note that the href attribute is case sensitive You link to an anchor using the anchor name preceded by a pound (#) symbol i.e. Grading.

XP Web Page Structures Storyboarding your Web pages before you create links helps you determine which structure works best for the type of information you’re presenting. You want to ensure that readers can navigate easily from page to page without getting lost. You’ll encounter several Web structures as you navigate the Web. Examining some of these structures can help you decide how to design your own system of Web pages.

XP Linear Structures In this structure you can jump only from one page to the next or previous page Link to previous page Link to next page This figure shows one common Web page structure, the linear structure, in which each page is linked to the next and to previous page, in an ordered chain of pages.

XP Augmented Linear Structure This figure shows an augmented linear structure, in which you include a link in each page that jumps directly back to the first page, while keeping the links that allow you to move to the next and previous pages. first link jumps to previous page second link jumps back to beginning third page has three links third link jumps to next page

XP Hierarchical Structure

XP Combination of Linear and Hierarchical Structures This figure shows a hierarchical structure in which each level of pages is related in a linear structure. information about the play the scenes each level is linear information about the acts overall structure is hierarchical

XP Web Structures Continued A little foresight can go a long way toward making your Web pages easier to use. The best time to organize a structure is when you first start creating pages, when those pages are small in number and more easily managed. If you’re not careful, your structure can become confusing and unmanageable for the user.

XP Linking to a Document To create a link to a document, use the same tag with the href attribute i.e. Contact me. In order for the browser to be able to locate and open contact.htm, it must be in the same folder as the document containing the link.

XP Linking to a Section of a Document To navigate to a specific location elsewhere in a document, rather than the top, you can set anchors and link to an anchor you create within the document. –for example, to create a link to a section in the Web page home.htm marked with an anchor name of “interests,” you create an anchor in home.htm in the section on Interests, and then enter the following HTML code in the current document: View my interests the entire text, “View my interests,” is linked to the Interests section in the home.htm file, via the anchor name “interests” the pound symbol (#) in this tag distinguishes the filename from the anchor name

XP Linking to Documents in Other Folders Browsers assume that if no folder information is given, the file is in the same folder as the current document. When referencing a file located in a different folder than the link tag, you must include the location, or path, for the file. HTML supports two kinds of paths: absolute paths and relative paths.

XP Absolute Pathnames An absolute pathname provides a precise location for a file. With HTML, absolute pathnames begin with a slash (/) and are followed by a sequence of folders beginning with the highest level folder and proceeding to the folder that contains the file. Each folder is separated by a slash. After you type the name of the folder or folders that contains the file, type a final slash and then the filename itself i.e. /tutorial.02/case/parks.htm. HTML also requires you to include the drive letter followed by a vertical bar (|) i.e. /C|/tutorial.02/case/parks.htm.

XP Relative Pathnames A relative path specifies the location for a file in relation to the folder containing the current Web document. As with absolute pathnames, folder names are separated by slashes. Unlike absolute pathnames, a relative pathname does not begin with a slash. To reference a file in a folder directly above the current folder in the folder hierarchy, relative pathnames use two periods (..) i.e.../tutorial/chem.htm.

XP Relative Pathnames Continued Relative pathnames make your hypertext links portable. Unlike absolute pathnames, If you move your files to a different computer or server, the hypertext links will stay intact. If absolute pathnames are used, each link has to be revised. This can be a very tedious process.

XP Linking to Documents on the Internet To create a hypertext link to a document on the Internet, you need to know its URL. A URL, or Uniform Resource Locator, specifies a precise location on the Web for a file. You can find the URL of a Web page in the Location or Address box of your browser’s document window. Once you know a document’s URL, you can create a link to it by adding the URL to the tag along with the href attribute in your text file i.e. Course Information.

XP Uniform Resource Locator (URL) Each URL follows the same format. –The first portion of the URL identifies the communication protocol, which is a set of rules that governs how information is exchanged. –Web pages use the communication protocol HTTP, short for Hypertext Transfer Protocol, so all Web page URLs begin with the letters “http”. –Following the communication protocol, there is typically a separator, such as a colon and two slashes (://) i.e.

XP Interpreting Parts of a Uniform Resource Locator (URL) This figure interprets a Web page with the URL

XP Displaying Linked Documents in a New Window By default, each Web page you open is displayed in the main browser window, replacing the one you were viewing last. To force a document to appear in a new window, instead of the main browser window, you would use the target attribute in the href tag i.e. Hypertext –url is the URL of the page, and new_window is a name assigned to the new browser window –the value use for the target attribute is used by the browser to identify the different open windows in the current browser session

XP External Hyperlinks You can set up external hyperlinks to open in the same browser window by using the same value for the target attribute. –if you do, the first hyperlink clicked opens the new window and displays the contents of the external file –as subsequent external hyperlinks are clicked, they replace the contents of the already opened window, and the contents of the main browser window remain unaffected If you want your external documents to be displayed in their own browser window, you can assign a unique target value for each hyperlink, or you can assign the _blank keyword to the target attribute i.e. Hypertext.

XP Linking to File Transfer Protocol (FTP) Servers You can create links to other Internet resources, such as FTP (File Transfer Protocol) servers. –FTP servers can store files that Internet users can download, or transfer, to their computers –FTP is the communications protocol these file servers use to transfer information –URLs for FTP servers follow the same format as those for Web pages, except that they use the FTP protocol rather than the HTTP protocol i.e. Microsoft FTP server.

XP Linking to Usenet News Usenet is a collection of discussion forums called newsgroups that let users exchange messages with other users on a wide variety of topics. The URL for a newsgroup is news:newsgroup. To access the surfing newsgroup alt.surfing, you place this line in your HTML file i.e. Go to the surfing newsgroup.

XP Linking to Many Web designers include their addresses on their Web pages, so that users who access the page can send feedback. You can identify addresses as hypertext links. –when a user clicks the address, the browser starts a mail program and automatically inserts the address into the “To” field of the outgoing message The URL for an address is mailto: _address. To create a link to the address the following code would be entered