Images, Hyperlinks, and Sound

Slides:



Advertisements
Similar presentations
3.02D HTML Overview 3.02 Develop webpages.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Iframes & Images Using HTML.
Introduction to HTML Lists, Images, and Links. Before We Begin Save another file in Notepad Save another file in Notepad Open your HTML, then do File>Save.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
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.
IT Introduction to Website Development Welcome!
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
Enhancing Your Web Site. More Basic HTML Tags Today you will learn these tags: & add-on (alt, height, width & align) and “href” add-on Add a text link.
1 Essential HTML coding By Fadi Safieddine (Week 2)
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) –
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.
More Basic XHTML Module 2: XHTML Basics LESSON 2.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
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.
How To Add Flair To Your Site Maureen Enright, Elyse Kuriata, Nathan Boes, Hodge.
Web Design (7) Images (1). Images and the Image Element Images can be placed in the flow of text..jpg,.png and.gif image files work in web pages The img.
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.
Web Design (8) Images (2). My Holiday Photos An exercise in adding and linking images. Create a new website folder calling it ‘My Holiday Photos’. In.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Images. Intro What is it? Getting your image Inserting Moving Resizing Cropping.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Links and Images. Links HTML uses a hyperlink to link to another document on the Web A hyperlink can be either text or a picture Links are created with.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
Creating Web Pages with Links, Images, and Embedded Style Sheets
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
Microsoft® PowerPoint  Entrance. Controls how an object first appears on a slide.  Emphasis. Draws attention to an object that is already.
Let’s Try It! Open Notepad
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
LESSON 2 Module 2: XHTML Basics More Basic XHTML.
HTML Coding A new language.
Images, Links and Multimedia
Intro to Dreamweaver Web Design Section 8-1
Learning the Basics – Lesson 1
Microsoft® Office FrontPage® 2003 Training
3.00cs HTML Overview 3.00cs Develop webpages.
Your First & Last Name (Make sure you capitalize your first and last name!) Follow these instructions: 1. Center your name on the slide (use the “Centered”
Images & Hyperlinks.
Adding Images.
Creating a Web Page Using HTML
3.02D HTML Overview 3.02 Develop webpages.
Basic HTML and Embed Codes
Introduction to Cascading Style Sheets (CSS)
Working with Multimedia
USING DREAMWEAVER MX 2004 Contents: Assigning a Root Folder
Images, Hyperlinks, and Sound
LESSON 2 Module 2: XHTML Basics More Basic XHTML.
LESSON 1 Module 2: XHTML Basics Basic XHTML.
Introduction to the ISB Intranet
Adding Images.
Enhancing Your Web Site—Adding Links Web Page
Adding Images.
Lesson 7 Graphics.
3.02D HTML Overview 3.02 Develop webpages.
4.02A HTML Overview 4.02 Develop web pages using various layouts and technologies. (Note to instructor: HTML tags are in red only to differentiate from.
Hyperlinks, Images, Comments, and More…
Adding Images.
Adding Images.
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Hyper text markup Language
Presentation transcript:

Images, Hyperlinks, and Sound LESSON 3 Module 2: XHTML Basics Images, Hyperlinks, and Sound

Lesson Overview In this lesson, you will learn to: Manipulate XHTML code using Notepad. View Web pages created using XHTML code using a browser. Insert images using XHTML code into a Web page. Create hyperlinks using XHTML code. Add sound to your Web page. Lesson 3 Overview

Guiding Questions for Lesson 3 Besides text, what other elements are common to Web pages? What is the difference between a Web page and a Web site? Post one or more of these questions in an area where students can read them and allow time for students to respond to the questions. Discuss the student answers these questions.

Adding Excitement to Your Web page Look at your “Tags and Attributes” Web page in a browser. What do you see on your Web page? What could you add to your Web page to make it more exciting? To this point, students have learned how to place text into a Web page and learned the basics of manipulating the text. Students may notice that outside of color, the Web page that they have created is relatively boring. Discuss with the students how they think they might be able to make their Web pages more exciting.

Images Visual representations include: Graphics Photographs Graphs Drawings What images do you have on your computer right now that could be used in your Web site? Where else can you get images? When can you copy images off the Internet? Discuss images. One way to add some interest to your Web page is to add an image. A image is some visual representation such as an picture, photograph, graph, or drawing. If students already have some images saved on their computer, use them to add interest to their Web page. If they don’t have any images saved to the computer, locate some on the Internet and save in a convenient location. If students have access to digital photographs of themselves or can take photographs of each other in the classroom, the project will be more interesting to them.

The IMAGE Element To place an image into a Web page the <img /> tag is used Here is an example: <img src=“picture.jpg” /> The tag tells the Web page to display the image named picture.jpg. Discuss the IMAGE element. Images can be inserted into a Web page using HTML code. The <img /> tag includes the letters ‘src’ (source) indicating the name and possibly the location of the image file. Here is an example of an image tag: <img src=”picture.jpg” /> This element tells the Web page to display the image named picture.jpg.

Finding an Image Path Open the folder containing the image file. Right-click on the image. Choose “Properties” from the menu. Discuss how to find an image path. Finding path of a image on the computer can be difficult. Discuss this trick with students to finding the correct path to enter in within the quotation marks. Open the folder containing the image that the student wants to use in their Web page. Right-click on the image and choose “Properties” from the menu. 7

Finding an Image Path In the “Properties” dialog box, look for “Location.” Copy and paste this location inside the quotation marks. Add a backward slash (\) and the image file name to the location path. In the “Properties” dialog box, students will find a section called “Location.” Students can copy and paste this inside the quotation marks and then add a backward slash (\) and the image file name. 8

Example of an Image tag <img src=“C:\Documents and Settings\Owner.FAMILYROOM\My Documents\My Pictures\picture.jpg” height=“100” width=“100” alt=”My Image” /> The image is located on the computer at C:\Documents and Settings\Owner.FAMILYROOM\My Documents\My Pictures\picture.jpg Attributes have been added Display size of the image defined by height and width Alt tag – used by browsers that “speak” the words on the Web page An example of an img element might look like this: <img src=”C:\Documents and Settings\Owner.FAMILYROOM\My Documents\My Pictures\picture.jpg” height=“100” width=“100” alt=”My Image” /> In this example, the image is located on the computer at C:\Documents and Settings\Owner.FAMILYROOM\My Documents\My Pictures\picture.jpg. You will notice that a few attributes have been added to the element. Using attributes, you can set the size of the image (height and width) and give the image an alt attribute. The alt attribute is used by read aloud browsers which are used by blind individuals that “speak” the words on Web page. 9

Using Hyperlinks Connect a Web page to other Web sites and Web pages on the Internet Use ANCHOR elements Example of an anchor tag: <a href=“http://www.microsoft.com” target=“_blank”>Microsoft</a> The word Microsoft is displayed in the Web page and hyperlinked to the Microsoft Web site The attribute “target” has been added The target=“_blank” attribute tells the browser to open the Microsoft Web page in a new window Discuss hyperlinks. Hyperlinks are connections to other parts of the Web site or to other Web sites on the Internet. Hyperlinks can be very useful for making connections to other areas. Hyperlinks are possible by using an anchor element. An example of an anchor element is: <a href=“http://www.microsoft.com” target=”_blank”>Microsoft</a>. In this example, the word Microsoft is displayed in the Web page and hyperlinked to the Microsoft Web site. An attribute has been added called target. This attribute tells the browser to open the Microsoft Web page in a new window. 10

Adding Visual Cues to Hyperlinks Help a viewer to keep track of which hyperlinks have already been visited Use an attribute within the body tag Three examples: <body link=“#0000FF”> sets the color of unvisited links to blue <body vlink=“#00FF00”> sets the color of visited links to green <body alink=“#FF0000”> sets the color of active links to red These can be combined into one statement within the body tag: <body link=“#0000FF” vlink=“#00FF00” alink=“#FF0000”> Visual clues can help a viewer keep track of which hyperlinks have already been visited. These visual clues are easily defined in the body tag of a Web page. Here are three examples: <body link=“#0000FF”> sets the color of unvisited links to blue <body vlink=“#00FF00”> sets the color of visited links to green <body alink=“#FF0000”> sets the color of active links to red 11

Adding Sound Files Can add valuable content or extra interest to the Web page Similar to adding an image May not play in all browsers Overuse can be annoying Should be appropriate for the site Allow the viewer to control it Discuss adding a sound file to a Web page. Adding a sound file to a Web page can add valuable content or extra interest. Adding a sound is very similar to adding an image file. Be aware though that the file may not play in all browsers. Over using sounds can also be annoying. Be sure that the sound is appropriate for the Web site and that the viewer is able to turn the sound off if they choose. 12

Adding Sound Files Uses an embed tag Here is an example: <embed name="Heirloom" src="C:\Documents and Settings\Owner.FAMILYROOM\My Documents\My Music\Heirloom.mp3" width=“300” height=“30” loop="false" autostart="false"></embed> Plays the sound file “Heirloom” located on the computer The viewer sees an audio player 300 pixels wide and 30 pixels high When the “loop” attribute is set to “false” the file plays one time When “autostart” is set to “false” the viewer must start the player to hear the file To add a sound file to a Web page, an embed tag is used. Here is an example: <embed name="Heirloom" src="C:\Documents and Settings\Owner.FAMILYROOM\My Documents\My Music\Heirloom.mp3" width=“300” height=“30” loop="false" autostart="false"></embed> This tag plays the file called “Heirloom” which is found on the computer in the location C:\Documents and Settings\Owner.FAMILYROOM\My Documents\My Music\Heirloom.mp3. The viewer will see an audio player 300 px. wide and 30 px. high. The file will play once when the attribute “loop” is set to “false” If the “autostart” attribute is set to “false,” the viewer must start the player to hear the file. 13

Lesson Review Explain how to write the XHTML code for each of the following situations: Adding an image to a Web page Inserting a hyperlink to a Web page Adding a sound to a Web page Review concepts covered if needed with the students and discuss the practice activity.

Practice: Make the following changes to your “Tags and Attributes” Web page: Add an image of your choice Create a hyperlink to your school Web site Add a sound file This is the last slide of the presentation.