Hyperlinks Types of Links Link to the places in the same page Link to pages within the same site Link to the e-mail system –Caution: Will not work without.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Advertisements

HTML III. Learning Objectives HTML Links Structuring Pages with Frames Introduction to Cascading Style Sheets (CSS)
Working with Images and HTML
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Iframes & Images Using HTML.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Image Maps and Graphics Internet Basics and Far Beyond! Mrs. Wilson.
LIST- HYPERLINK- IMAGES
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
Linked Windows and Frames. Frames and Linked Windows2 Linked Windows n Information pointed to by hyperlink displayed in another window n Target attribute.
The Power of Tables They aren't just for sitting stuff on anymore...
Start -> All Programs -> Classes -> Web Expressions -> Dreamweaver.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
ICT for IGCSE – Syllabus Cambridge IGCSE ® Information and Communication Technology0417 Other web pages In own website New window Same page.
CS105 Introduction to Computer Concepts HTML
Web Design HTML, Frontpage, DreamWeaver μέρος β ΠΡΥ019 - Πληροφορική Δρ.Βάσος Βασιλείου.
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.
Colors, Images, & Image Maps. Working with Color Colors are defined in terms of RGB Triplet –Red, Green, Blue –0 to 255 in intensity –(00, 00, 00) is.
Audio and Video CGS Some Common Audio Formats Format Use Extension MIDI instrumental music.mid MPEG songs.mp3 RealAudio live broadcasts.ra Wave.
1 Mastering the Internet and HTML Images and Image Tags.
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
Images, Hyperlinks, and Sound Module 2: XHTML Basics LESSON 3.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
Images & Image Maps 16 th February. Images & Image Maps Web authors can add icons, logos and high impact images to their pages Images enhance web pages.
HTML, Third Edition--Illustrated Brief 1 HTML, Third Edition Illustrated Brief Unit D Adding Graphics and Multimedia.
Creating Web Pages with Links, Images, and Formatted Text
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
Computer Science 101 Images in Web Pages. Image Files Two common formats, GIF and JPEG GIF images are more flexible for use as icons JPEG images are sharper.
Creating Links – Lesson 31 Creating Links Lesson 3.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
HTML: Tables & Frames Internet Technology.
Intro to HTML Part 2 Kin 260 Jackie Kiwata. Overview Links Images Lists.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
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.
Multimedia Web Pages. Multimedia displays Browser can load web pages that contains multimedia elements 1. Helper applications: stand-alone programs that.
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
Embedding Multimedia in Web Pages  Multimedia is a popular buzzword for sound, motion video, and interactive animation.  Some problems or obstacles.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
Basic Webpage Design Mark-up html document with images.
Links in HTML What you need to know….. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
1 Creating the Home Page. 2 Creating a Table Table attributes  Two rows and two columns  No border  Left-aligned Change the vertical alignment of the.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
REEM ALMOTIRI Information Technology Department Majmaah University.
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
HTML III ECT 270 Robin Burke.
Images, Hyperlinks, and Sound
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Images, Links and Multimedia
Creating Links – Lesson 3
Hosted by Coach Slanina
Web Programming– UFCFB Lecture 8
Programming the Web using XHTML and JavaScript
Chapter 3 Images.
Images, Hyperlinks, and Sound
Web Programming– UFCFB Lecture 8
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Presentation transcript:

Hyperlinks Types of Links Link to the places in the same page Link to pages within the same site Link to the system –Caution: Will not work without a set up Link to other sites –Caution: Check often for broken links Mouse clicks to change what the browser displays

Hyperlinks in the same page Step 1 Define point to link to Step 2 Create hyperlink link This paragraph has a click here Put lots of content here This will display when the hyperlink is clicked Lots more content How? We use the anchor tag !

Hyperlinks within the same Site Link to pages in the same site –Example: link to a pages in a child folder Go to sub folder –Example: link to a page in the parent folder Go to parent folder –Example: link inside a page in the same folder ) Notes: –Page is a folder within the one that holds the HTML file –The characters ‘..’ Refers to the parent folder –site.htm must have a hyperlink using an id="mars" attribute

Other Hyperlinks Link to the system Contact Dan Harvey –Caution: Requires links to the browser Link to other sites –Example: Mars In link –Caution: External links can change; check often –Caution: Linking to within external pages is dangerous Mouse clicks to change what the browser displays

Displaying Pictures Where do we get Pictures from –Digital photographs –Scanning drawings into the computer –Find clip art –Right click and download internet images –Make your own (Adobe, Photo Shop, Corel) Which image formats should we use –See next slide

Comparison of Image Formats Featuregifpngjpg LosslessYes No CopyrightedYesNo AnimationYesNo TransparencyYes No Size on DiskLarge Small PixResizer is a freeware that allows you to change formats

Displaying Pictures The tag Display a picture on the same site Display a picture on another site Click on an image to link <img src=" alt="grafiti"/>

Other Image Tag Attributes alt = "Coliseum" –Display if browser cannot display the image –Displays if the mouse moves over the image –Required for XHTML compliance align to "left", "right", "top", "bottom", or "middle“ –Defines position relative to the surrounding text border="0" or border="10" –Eliminate or create a border around an image width= "50" height="50“ –Resize the image –Note: can distort the display hspace="10" vspace="10" –create white space around the image

Image Examples Basic img tag (Caution: link externally with care or you can get broken links) Align attributes (useful for small images) align="top" – line of text at the top align="middle" – line of text in the middle align= " bottom " – line of text at the bottom Scaling (Caution: size changes can cause distortion and the whole thing loads anyway) height="50" width="50 " – scale the sizeStyle sheet positioning The alt attribute is required for XHTML compliance. The text displays when users mouse over and if the image is not found Caution: Lots of images make for cluttered pages and slow downloads

The Image Map … Define click coordinates hyperlinks in images Tie image to image map – Define the image map – Create click point(s) – –Other shapes are circle (x,y,r) or poly (x1,y1,…,xk,yk). –x1,y1,x2,y2 are the pixel coordinates (ex: 0,66,26,227) –Coordinate 0,0,0,0 is the top left Note: This is one example where a DreamWeaver can help Note: The alt attribute is required for XHTML compliance

Image Map Example <area shape="rect" coords="48,46,204,153" href=" question.html" alt="question"/> <area shape="rect" coords="321,154,468,26" href="pinatubo.htm/" alt="pinatubo" /> <area shape="rect" coords="172,155,318,274" href="strombi.htm" alt = strombi" /> <area shape="rect" coords="36,155,168,276"href="volcwatch.htm" alt="volcano watch" /> <area shape="rect" coords="205,3,343,123" href="santamaria.htm” alt="santamaria" /> Note: The image has no border

The Target Attribute Designates if linked web page should appear in a separate window Works with the and tags target="_blank" –Display linked page in a separate blank window target="_top" –Fill entire browser window (applies to frames) target="_self" –Display linked page in the same browser window target="_parent" –Display linked page in frame occupied by previous (parent) link target="name of window" –Display linked page in new window with the specified name.

Sound (Formats and Example) Wav: Uncompressed and large, universal Mp3: Good compression, not on all platforms Aif: Apple, some compression Note: Check out Appendix B in the book for full tag description

Movies (Formats and Example) Mpeg (Motion Pictures Expert Group) –Best compression, Proprietary, Not on all platforms Avi (Audio Video Interleave by Microsoft) –Hi compression possible, some files don’t use it Mov (developed by apple) –Largest user base with cross platform support <embed src="sample.mov" width="160" height="144" autoplay= "false" controller="true" loop="false" pluginspage="

Some Review Questions Browsers can play audio using a standard hyperlink. Why is it better to use the object tag? Why is it a good idea to include both an and tag when linking to multimedia audio and video? What is an image map? How do you link an image to an image map? How do you set up an image map? What are the uses and values of the target attribute? What tags make use of the target attribute? How would you create an image in a web-page with text rolling around both the left and right sides? What are the primary image formats? What are the advantages and disadvantages of each? Why is it dangerous to link to external images? How do you hyperlink to the middle of a page? How do you create an hyperlink? What attributes are required for the img and area tags.