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.

Slides:



Advertisements
Similar presentations
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 2: Developing a Web Site.
Advertisements

XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
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
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.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
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
Hyperlinks. Working with Linked Images  A standard practice on the Web is to turn the Web site’s logo into a hypertext link pointing to the home page.
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.
Developing a Basic Web Page with HTML
XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
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
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
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.
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.
Understanding HTML Code
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.
XHTML Louise Soe updated September 2009.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
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.
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.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
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.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 1 1 Browser Basics Introduction to the Web and Web Browser Software Tutorial.
Creating Links – Lesson 31 Creating Links Lesson 3.
Developing a Basic Web Site
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
INTRODUCTORY Tutorial 6 Using Links on a Web Page.
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.
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.
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.
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.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
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.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
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.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
Lecture 6, MAT 279, Fall HTML Introduction (cont.) 9/17/2009.
Developing a Basic Web Site
CNIT 131 HTML5 – Anchor/Link.
HTML Introduction Lecture 8.
Presentation transcript:

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 relative and absolute folder paths Work with the base element Mark a location with the id attribute Create a link to an id Mark an image as a link New Perspectives on HTML, XHTML, and Dynamic HTML, 4e2

XP Objectives Create an image map from an inline image Remove an image border Understand URLs Link to a site on the Web Link to an FTP site Link to an address Work with hypertext attributes Work with metadata New Perspectives on HTML, XHTML, and Dynamic HTML, 4e3

XP Working with Web Site Structures A storyboard is a diagram of a Web site’s structure, showing all the pages in the site and indicating how they are linked together It is 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 New Perspectives on HTML, XHTML, and Dynamic HTML, 4e4

XP Linear Structures 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 In an augmented linear structure, each page contains an additional link back to an opening page New Perspectives on HTML, XHTML, and Dynamic HTML, 4e5

XP Linear Structures New Perspectives on HTML, XHTML, and Dynamic HTML, 4e6 A linear structure An augmented linear structure

XP Hierarchical Structures In the hierarchical structure, the pages are linked going from the home page down to more specific pages 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 New Perspectives on HTML, XHTML, and Dynamic HTML, 4e7

XP Hierarchical Structures New Perspectives on HTML, XHTML, and Dynamic HTML, 4e8

XP Mixed 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 A site index is a page containing an outline of the entire site and its contents New Perspectives on HTML, XHTML, and Dynamic HTML, 4e9

XP Mixed Structures New Perspectives on HTML, XHTML, and Dynamic HTML, 4e10

XP Web Site with No Coherent Structure New Perspectives on HTML, XHTML, and Dynamic HTML, 4e11

XP Protected Structures Sections of most commercial Web sites are off- limits except to subscribers and registered customers New Perspectives on HTML, XHTML, and Dynamic HTML, 4e12

XP Creating a Hypertext Link New Perspectives on HTML, XHTML, and Dynamic HTML, 4e13

XP Creating a Hypertext Link 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 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 New Perspectives on HTML, XHTML, and Dynamic HTML, 4e14

XP Creating a Hypertext Link New Perspectives on HTML, XHTML, and Dynamic HTML, 4e15

XP Specifying a Folder Path New Perspectives on HTML, XHTML, and Dynamic HTML, 4e16

XP Specifying a Folder Path 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 An absolute path specifies a file’s precise location within a computer’s entire folder structure 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 a subfolder of the current document, you have to include the name of the subfolder New Perspectives on HTML, XHTML, and Dynamic HTML, 4e17

XP Specifying a Folder Path If you want to go one level up the folder tree, you start the relative path with a double period (..), a forward slash, and 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 You should almost always use relative paths in your links New Perspectives on HTML, XHTML, and Dynamic HTML, 4e18

XP Specifying a Folder Path New Perspectives on HTML, XHTML, and Dynamic HTML, 4e19

XP 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 you want to create a copy of a single page from a large Web site on another Web server New Perspectives on HTML, XHTML, and Dynamic HTML, 4e20

XP Using the id Attribute To jump to a specific location within a document, you first need to mark that location One way to identify elements in an HTML document is to use the id attribute Id names must be unique Id names are not case sensitive New Perspectives on HTML, XHTML, and Dynamic HTML, 4e21

XP Lining to Locations within Documents 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 Generally, a link should not contain any block- level elements New Perspectives on HTML, XHTML, and Dynamic HTML, 4e22

XP Lining to Locations within Documents New Perspectives on HTML, XHTML, and Dynamic HTML, 4e23

XP Creating Links between Documents To create a link to a specific location in another file, enter the code content where reference is a reference to an HTML or XHTML file and id is the id of an element marked within that file New Perspectives on HTML, XHTML, and Dynamic HTML, 4e24

XP Creating Links between Documents New Perspectives on HTML, XHTML, and Dynamic HTML, 4e25

XP Working with Linked Images and Image Maps A standard practice on the Web is to turn the Web site’s logo into a hypertext link pointing to the home page HTML also allows you to divide an image into different zones, or hotspots, each linked to a different destination New Perspectives on HTML, XHTML, and Dynamic HTML, 4e26

XP Working with Linked Images and Image Maps New Perspectives on HTML, XHTML, and Dynamic HTML, 4e27

XP Working with Linked Images and Image Maps To define these hotspots, you create an image map that matches a specified region of the inline image to a specific destination New Perspectives on HTML, XHTML, and Dynamic HTML, 4e28

XP Client-Side Image Maps A client-side image map is inserted in an image map into the HTML file The browser locally processes the image map Because all of the processing is done locally, you can easily test Web pages More responsive than server-side maps The browser’s status bar displays the target of each hotspot Older browsers do not support client-side images New Perspectives on HTML, XHTML, and Dynamic HTML, 4e29

XP Defining Hotspots Define a hotspot using two properties: – Its location in the image – Its shape Syntax of the hotspot element: New Perspectives on HTML, XHTML, and Dynamic HTML, 4e30

XP Creating a Rectangular Hotspot Two points define a rectangular hotspot: – the upper-left corner – the lower-right corner A sample code for a rectangular hotspot is: – Coordinates are entered as a series of four numbers separated by commas – HTML expects that the first two numbers represent the coordinates for the upper-left corner of the rectangle, and the second two numbers indicate the location of the lower-right corner – The hotspot is a hypertext link to water.htm New Perspectives on HTML, XHTML, and Dynamic HTML, 4e31

XP Creating a Circular Hotspot A circular hotspot is defined by the location of its center and its radius A sample code for a circular hotspot is: – Coordinates are (307, 137), and it has a radius of 66 pixels – The hotspot is a hypertext link to karts.htm New Perspectives on HTML, XHTML, and Dynamic HTML, 4e32

XP Creating a Polygonal Hotspot To create a polygonal hotspot, you enter the coordinates for each vertex in the shape A sample code for a polygonal hotspot is: – Coordinates are for each vertex in the shape – The hotspot is a hypertext link to rides.htm New Perspectives on HTML, XHTML, and Dynamic HTML, 4e33

XP Creating a Default Hotspot where x is the width of the inline image in pixels and y is the image’s height Any spot that is not covered by another hotspot will activate the default hotspot link New Perspectives on HTML, XHTML, and Dynamic HTML, 4e34

XP Creating a Client-Side Image Map New Perspectives on HTML, XHTML, and Dynamic HTML, 4e35

XP Applying an Image Map New Perspectives on HTML, XHTML, and Dynamic HTML, 4e36

XP Server-Side Image Maps In a server-side image map, the image map is stored on the Web server Server-side image maps are supported by most graphical browsers Server-side image maps can be slow to operate The browser’s status bar does not display the target of each hotspot New Perspectives on HTML, XHTML, and Dynamic HTML, 4e37

XP Introducing URLs 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 protocol is a set of rules defining how information is exchanged between two resources New Perspectives on HTML, XHTML, and Dynamic HTML, 4e38

XP Introducing URLs 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” Other Internet resources use different protocols and have different scheme names New Perspectives on HTML, XHTML, and Dynamic HTML, 4e39

XP Internet Protocols New Perspectives on HTML, XHTML, and Dynamic HTML, 4e40

XP Linking to a Web Site New Perspectives on HTML, XHTML, and Dynamic HTML, 4e41 A sample URL for a Web page

XP Linking to a Web Site 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 the default home page The server name portion of the URL is also called the domain name The top level, called an extension, indicates the general audience supported by the Web server Apogee Photo New Perspectives on HTML, XHTML, and Dynamic HTML, 4e42

XP Linking to a Web Site New Perspectives on HTML, XHTML, and Dynamic HTML, 4e43

XP Linking to FTP Servers FTP servers are another method of storing and sharing files on the Internet 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 New Perspectives on HTML, XHTML, and Dynamic HTML, 4e44

XP Linking to FTP Servers New Perspectives on HTML, XHTML, and Dynamic HTML, 4e45

XP Linking to a Local File 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 (/) 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 New Perspectives on HTML, XHTML, and Dynamic HTML, 4e46

XP Linking to an Address Many Web sites use to allow users to communicate with a site’s owner, sales representative, or technical support staff You can turn an address into a hypertext 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 New Perspectives on HTML, XHTML, and Dynamic HTML, 4e47

XP Linking to an Address The mailto protocol also allows you to add information to the , including the subject line and the text of the message – mailto:address?header1=value1&header 2=value2&... – Test&Body= This%20is%20a%20test%20message To preserve information about blank spaces, URLs use escape characters New Perspectives on HTML, XHTML, and Dynamic HTML, 4e48

XP Linking to an Address New Perspectives on HTML, XHTML, and Dynamic HTML, 4e49

XP Linking to an Address 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 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 New Perspectives on HTML, XHTML, and Dynamic HTML, 4e50

XP Linking to an Address New Perspectives on HTML, XHTML, and Dynamic HTML, 4e51

XP Working with Hypertext Attributes HTML provides several attributes to control the behavior and appearance of your links You can force a document to appear in a secondary window or tab by adding the target attribute to the tag tag If you want to provide additional information to your users, you can provide a tooltip to your links A tooltip is a descriptive text that appears whenever a user positions the mouse pointer over a link New Perspectives on HTML, XHTML, and Dynamic HTML, 4e52

XP Working with Hypertext Attributes New Perspectives on HTML, XHTML, and Dynamic HTML, 4e53

XP Working with Hypertext Attributes New Perspectives on HTML, XHTML, and Dynamic HTML, 4e54

XP Working with Metadata Web authors often turn to companies that specialize in making sites appear more prominently in search engines Information about the site is called metadata Add metadata to your Web pages by adding a meta element to the head section of the document New Perspectives on HTML, XHTML, and Dynamic HTML, 4e55

XP Working with Metadata New Perspectives on HTML, XHTML, and Dynamic HTML, 4e56

XP Working with Metadata In recent years, search engines have become more sophisticated in evaluating Web sites – The meta element has decreased in importance, but it is still used by search engines when adding a site to their indexes New Perspectives on HTML, XHTML, and Dynamic HTML, 4e57

XP Working with Metadata You can add information and commands to this communication stream with the meta element’s http- equiv attribute – Force the Web browser to refresh the Web page at timed intervals – Redirect the browser from the current document to a new document – Specify the character set New Perspectives on HTML, XHTML, and Dynamic HTML, 4e58