XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.

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.
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.
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.
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.
1 Linking Web Pages Why is Hypertext Hyper? Storyboarding Page Links (Site Map) Path to Files Various Links Click Here :( Page Footers.
1 Linking Web Pages Why is Hypertext Hyper? Storyboarding Page Links (Site Map) Sequential and Indexed-Sequential Designs Hierarchical Design Custom Design.
Chapter 2: Application layer  2.1 Web, HTTP and HTML (We will continue…)  2.2 FTP  2.3 SMTP 9/22/2009 Lecture 7, MAT 279, Fall
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.
Lesson 19 Internet Basics.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Lesson 46: Using Information From the Web copy and paste information from a Web site print a Web page download information from a Web site customize Web.
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.
Getting Started with HTML5
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.
XP 1 HTML: The Language of the Web A Web page is a text file written in a language called Hypertext Markup Language. A markup language is a language that.
Tutorial 2 Developing a Basic Web Site. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn how to storyboard various.
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.
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.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
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.
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.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Windows Tutorial 4 Working with the Internet and
Tutorial 1: Browser Basics.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML, CSS, and XML Tutorial 2 Developing a Web Site.
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.
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.
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
INTRODUCTORY Tutorial 6 Using Links on a Web Page.
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.
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
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.
Basics.  An address for a Web site is its domain name  URL (Uniform Resource Locator)  Specifies the precise location of a resource on the Internet.
XP INFT 140 – Chapter 2 1 Developing a Basic Web Site Creating a Chemistry Web Site.
Website design and structure. A Website is a collection of webpages that are linked together. Webpages contain text, graphics, sound and video clips.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Developing a Basic Web Site Maureen Smith Professor, Saddleback College Tutorial 2.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
XP 1 Charles Edeki AIU Live Chat for Unit 2 ITC0381.
Lecture 8 Introduction to Web Programming. Announcement  First In-class exam will be on Oct. 10 (Wednesday)  2.50pm – 4.05pm  Exam will cover all materials.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
Lecture 6, MAT 279, Fall HTML Introduction (cont.) 9/17/2009.
4.01 How Web Pages Work.
Developing a Basic Web Site
Internal and External Links
Navigating The World Wide Web
CNIT 131 HTML5 – Anchor/Link.
HTML Introduction Lecture 8.
Presentation transcript:

XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2

XP 2 Working with Links Hyperlink – destination – different documents or different sections of a document – anywhere on the web Hyperlink – destination – different documents or different sections of a document – anywhere on the web Link is a quicker way to access information at the bottom of a Web page than scrolling down Link is a quicker way to access information at the bottom of a Web page than scrolling down

XP 3 Creating Element Ids One way to identify elements in an HTML document is to use the id attribute One way to identify elements in an HTML document is to use the id attribute Id names must be unique Id names must be unique Id names are not case sensitive Id names are not case sensitive

XP 4 Creating Links Within a Document To create a link within a document, you enclose the content that you want to format as a link in an tag, and use the href attribute to identify the link target To create a link within a document, you enclose the content that you want to format as a link in an tag, and use the href attribute to identify the link target A link’s content is not limited to text A link’s content is not limited to text Generally, a link should not contain any block- level elements Generally, a link should not contain any block- level elements

XP 5 Creating Links Within a Document

XP 6 Creating Anchors Anchor element - marks a specific location within a document Anchor element - marks a specific location within a document Create anchors - same tag that you use to create links, anchor content can also include most inline elements and empty elements; however, anchors cannot include block-level elements Create anchors - same tag that you use to create links, anchor content can also include most inline elements and empty elements; however, anchors cannot include block-level elements Inserting an anchor does not change your document’s appearance. It just creates a destination within your document Inserting an anchor does not change your document’s appearance. It just creates a destination within your document

XP 7 Site Information Architecture 6 concrete steps 6 concrete steps –Define goals –Define audience –Create and organize content –Formulate visual presentation concepts –Develop site map and navigation - blueprint –Design and produce visual forms

XP 8 Working with Web Site Structures A storyboard - diagram of a Web site’s structure, showing all the pages in the site and indicating how they are linked together A storyboard - diagram of a Web site’s structure, showing all the pages in the site and indicating how they are linked together Important to storyboard your Web site before you start creating your pages in order to determine which structure works best for the type of information the site contains Important to storyboard your Web site before you start creating your pages in order to determine which structure works best for the type of information the site contains A well-designed structure can ensure that users will be able to navigate the site without getting lost or missing important information A well-designed structure can ensure that users will be able to navigate the site without getting lost or missing important information

XP 9 Working with Web Site Structures The three chemistry pages

XP 10 Linear Structures In a linear structure, each page is linked with the pages that follow and precede it in an ordered chain In a linear structure, each page is linked with the pages that follow and precede it in an ordered chain Linear structure works best for Web pages with a clearly defined order Linear structure works best for Web pages with a clearly defined order In an augmented linear structure, each page contains an additional link back to an opening page In an augmented linear structure, each page contains an additional link back to an opening page

XP 11 Linear Structures A linear structure An augmented linear structure

XP 12 Hierarchical Structures In the hierarchical structure, the pages are linked going from the most general page down to more specific pages In the hierarchical structure, the pages are linked going from the most general page down to more specific pages Users can easily move from general to specific and back again Users can easily move from general to specific and back again Within this structure, a user can move quickly to a specific scene within the page, bypassing the need to move through each scene in the play Within this structure, a user can move quickly to a specific scene within the page, bypassing the need to move through each scene in the play

XP 13 Hierarchical Structures

XP 14 Mixed Structures As Web sites become larger and more complex, you often need to use a combination of several different structures As Web sites become larger and more complex, you often need to use a combination of several different structures The overall form can be hierarchical, allowing the user to move from general to specific; however, the links also allow users to move through the site in a linear fashion The overall form can be hierarchical, allowing the user to move from general to specific; however, the links also allow users to move through the site in a linear fashion

XP 15 Mixed Structures

XP 16 Working with Web Site Structures A little foresight can go a long way toward making your Web site easier to use A little foresight can go a long way toward making your Web site easier to use Each page should contain, at minimum, a link to the site’s home page, or to the relevant main topic page, if applicable Each page should contain, at minimum, a link to the site’s home page, or to the relevant main topic page, if applicable You may want to supply your users with a site index which is a page containing an outline of the entire site and its contents You may want to supply your users with a site index which is a page containing an outline of the entire site and its contents

XP 17 Creating Links Between Documents

XP 18 Creating Links Between Documents To link to a page, you specify the name of the file using the href attribute of the tag To link to a page, you specify the name of the file using the href attribute of the tag Filenames are case sensitive on some operating systems, including the UNIX and Macintosh, but not on others Filenames are case sensitive on some operating systems, including the UNIX and Macintosh, but not on others The current standard is to use lowercase filenames for all files on a Website and to avoid special characters such as blanks and slashes The current standard is to use lowercase filenames for all files on a Website and to avoid special characters such as blanks and slashes You should also keep filenames short to avoid typing errors You should also keep filenames short to avoid typing errors

XP 19 Linking to a Location Within Another Document When linking to a location within another document, you must use the anchor name of the location within the document and the filename When linking to a location within another document, you must use the anchor name of the location within the document and the filename content content

XP 20 Linking to Documents in Other Folders To create a link to a file located in a different folder than the current document, you must specify the file’s location, or path, so that browsers can find it To create a link to a file located in a different folder than the current document, you must specify the file’s location, or path, so that browsers can find it HTML supports two kinds of paths: relative and absolute HTML supports two kinds of paths: relative and absolute An absolute path specifies a file’s precise location within a computer’s entire folder structure An absolute path specifies a file’s precise location within a computer’s entire folder structure

XP 21 A Sample Folder Tree

XP 22 Relative Paths A relative path specifies a file’s location in relation to the location of the current document A relative path specifies a file’s location in relation to the location of the current document If the file is in the same location as the current document, you do not have to specify the folder name If the file is in the same location as the current document, you do not have to specify the folder name If the file is in a subfolder of the current document, you have to include the name of the subfolder If the file is in a subfolder of the current document, you have to include the name of the subfolder

XP 23 Relative Paths If you want to go one level up the folder tree, you start the relative path with a double period (..) then provide the name of the file If you want to go one level up the folder tree, you start the relative path with a double period (..) then provide the name of the file To specify a different folder on the same level, known as a sibling folder, you move up the folder tree using the double period (..) and then down the tree using the name of the sibling folder To specify a different folder on the same level, known as a sibling folder, you move up the folder tree using the double period (..) and then down the tree using the name of the sibling folder You should almost always use relative paths in your links You should almost always use relative paths in your links

XP 24 Changing the Base The base element is useful when a document is moved to a new folder. Rather than rewriting all of the relative paths to reflect the document’s new location, the base element can redirect browsers to the document’s old location, allowing any relative paths to be resolved The base element is useful when a document is moved to a new folder. Rather than rewriting all of the relative paths to reflect the document’s new location, the base element can redirect browsers to the document’s old location, allowing any relative paths to be resolved The base element is useful when you want to create a copy of a single page from a large Web site on another Web server The base element is useful when you want to create a copy of a single page from a large Web site on another Web server

XP 25 Understanding URLs To create a link to a resource on the Internet, you need to know its URL To create a link to a resource on the Internet, you need to know its URL A Uniform Resource Locator (URL) specifies the precise location of a resource on the Internet A Uniform Resource Locator (URL) specifies the precise location of a resource on the Internet A protocol is a set of rules defining how information is exchanged between two resources A protocol is a set of rules defining how information is exchanged between two resources

XP 26 Understanding URLs Your Web browser communicates with Web servers using the Hypertext Transfer Protocol (HTTP) Your Web browser communicates with Web servers using the Hypertext Transfer Protocol (HTTP) The URLs for all Web pages must start with the scheme “http” The URLs for all Web pages must start with the scheme “http” Other Internet resources use different protocols and have different scheme names Other Internet resources use different protocols and have different scheme names

XP 27 Common Communication Protocols

XP 28 Linking to a Web Page A sample URL for a Web page

XP 29 Linking to a Web Page If a URL includes no path, then it indicates the topmost folder in the server’s directory tree If a URL includes no path, then it indicates the topmost folder in the server’s directory tree If a URL does not specify a filename, the server searches for a file named “index.html” or “index.htm” If a URL does not specify a filename, the server searches for a file named “index.html” or “index.htm”

XP 30 Linking to FTP Servers FTP servers are one of the main sources for storing files on the Internet FTP servers are one of the main sources for storing files on the Internet FTP servers transfer information using a communications protocol called File Transfer Protocol, or FTP for short FTP servers transfer information using a communications protocol called File Transfer Protocol, or FTP for short An FTP server requires each user to enter a password and a username to access its files An FTP server requires each user to enter a password and a username to access its files

XP 31 Linking to FTP Servers An FTP site as it appears in Internet Explorer

XP 32 Linking to Usenet News Usenet is a collection of discussion forums called newsgroups that let users publicly exchange messages with each other on a wide variety of topics Usenet is a collection of discussion forums called newsgroups that let users publicly exchange messages with each other on a wide variety of topics When you click a link to a newsgroup, your computer opens a program for reading newsgroups, known as newsreader, displaying the latest messages from the newsgroup When you click a link to a newsgroup, your computer opens a program for reading newsgroups, known as newsreader, displaying the latest messages from the newsgroup

XP 33 Linking to Usenet News A Sample Newsreader

XP 34 Linking to a Local File On occasion, you may see the URL for a file stored locally on your computer or local area network On occasion, you may see the URL for a file stored locally on your computer or local area network If you are accessing a file from your own computer, the server name might be omitted and replaced by an extra slash (/) If you are accessing a file from your own computer, the server name might be omitted and replaced by an extra slash (/) The file scheme here does not imply any particular communication protocol; instead the browser retrieves the document using whatever method is the local standard for the type of file specified in the URL The file scheme here does not imply any particular communication protocol; instead the browser retrieves the document using whatever method is the local standard for the type of file specified in the URL

XP 35 Linking to E- mail Many Web sites use to allow users to communicate with a site’s owner, or with the staff of the organization that runs the site Many Web sites use to allow users to communicate with a site’s owner, or with the staff of the organization that runs the site You can turn an address into a link, so that when a user clicks on an address, the browser starts an program and automatically inserts the address into the “To” field of the new outgoing message You can turn an address into a link, so that when a user clicks on an address, the browser starts an program and automatically inserts the address into the “To” field of the new outgoing message

XP 36 Linking to E- mail The effect of links on increasing Spam is a concern The effect of links on increasing Spam is a concern Spam is unsolicited junk set to large numbers of people, promoting products, services, and in some cases, pornographic Web sites Spam is unsolicited junk set to large numbers of people, promoting products, services, and in some cases, pornographic Web sites Spammers create their lists through scanning Usenet postings, stealing Internet mailing lists, and using programs called harvesters that scan HTML code on the Web looking for the addresses contained in mailto URLs Spammers create their lists through scanning Usenet postings, stealing Internet mailing lists, and using programs called harvesters that scan HTML code on the Web looking for the addresses contained in mailto URLs

XP 37 Linking to E- mail Phishing - The act of sending an to a user falsely claiming to be an established legitimate enterprise in an attempt to scam the user into surrendering private information that will be used for identity theft. Phishing - The act of sending an to a user falsely claiming to be an established legitimate enterprise in an attempt to scam the user into surrendering private information that will be used for identity theft.

XP 38 Linking to E- mail If you need to include an address in your Web page, you can take a few steps to reduce problems with spam: If you need to include an address in your Web page, you can take a few steps to reduce problems with spam: –Replace all addresses in your page with inline images of those addresses –Write a program in a language like JavaScript to scramble any address in the HTML code –Replace the characters of the address with character codes –Replace characters with words in your Web page’s text

XP 39 Working with Hypertext Attributes HTML provides several attributes to control the behavior and appearance of your links HTML provides several attributes to control the behavior and appearance of your links You can force a document to appear in a new window by adding the target attribute to the tag tag You can force a document to appear in a new window by adding the target attribute to the tag tag If you want to provide additional information to your users, you can provide a popup title to your links If you want to provide additional information to your users, you can provide a popup title to your links A popup title is a descriptive text that appears whenever a user positions the mouse pointer over a link A popup title is a descriptive text that appears whenever a user positions the mouse pointer over a link

XP 40 Working with Hypertext Attributes Since only some browsers support popup titles, you should not place crucial information in them Since only some browsers support popup titles, you should not place crucial information in them

XP 41 Creating an Access Key Another way to activate a link is to assign a keyboard key, called an access key, to the link Another way to activate a link is to assign a keyboard key, called an access key, to the link To use an access key, you hold down an accelerator key (usually the Alt key in Windows or the Ctrl key on a Macintosh) and then press the specified key To use an access key, you hold down an accelerator key (usually the Alt key in Windows or the Ctrl key on a Macintosh) and then press the specified key Access keys are impractical in most situations because most access keys are already reserved by the browser Access keys are impractical in most situations because most access keys are already reserved by the browser It is difficult to indicate to the user which access key to press in order to activate a link It is difficult to indicate to the user which access key to press in order to activate a link

XP 42 Creating a Semantic Link Two attributes, rel and rev, allow you to specify the relationship between a link and its destination Two attributes, rel and rev, allow you to specify the relationship between a link and its destination The rel attribute describes the content of the destination document The rel attribute describes the content of the destination document The rev attribute complements the rel attribute by describing the contents of the source document as viewed from the destination document’s perspective The rev attribute complements the rel attribute by describing the contents of the source document as viewed from the destination document’s perspective

XP 43 Creating a Semantic Link Links containing the rel and rev attributes are called semantic links because the tag contains information about the relationship between the link and its destination Links containing the rel and rev attributes are called semantic links because the tag contains information about the relationship between the link and its destination A browser can use the information that these attributes provide in many ways—for example to build a custom toolbar containing a list of links specific to the page being viewed A browser can use the information that these attributes provide in many ways—for example to build a custom toolbar containing a list of links specific to the page being viewed

XP 44 Link Types

XP 45 Using the Link Element Another way to add a link to your document is to add a link element to the document’s head Another way to add a link to your document is to add a link element to the document’s head Link elements are intended only for the browser’s use Link elements are intended only for the browser’s use Link elements have primarily been used to link style sheets Link elements have primarily been used to link style sheets Because no single list of relationship names is widely accepted, you must check with each browser’s documentation to find out what relationship names it supports Because no single list of relationship names is widely accepted, you must check with each browser’s documentation to find out what relationship names it supports

XP 46 Assign #3 - Case Problem #1, pg print HTML code - mpl.htm only; Case Problem #2, pg , print HTML code - b9home.htm, b9gloss.htm, b9m1.htm, b9m2.htm, b9m3.htm, b9m4.htm only, don’t forget to include storyboard (due 10/5/06). Assign #3 - Case Problem #1, pg print HTML code - mpl.htm only; Case Problem #2, pg , print HTML code - b9home.htm, b9gloss.htm, b9m1.htm, b9m2.htm, b9m3.htm, b9m4.htm only, don’t forget to include storyboard (due 10/5/06).