Graphics Basics Two forces are always at odds when you post graphics and multimedia on the Internet. Your eyes and ears want everything to be as detailed.

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
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.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Choosing an Image Format Image Sizes Bits Per Pixel Graphic Tips Image Tag Attributes Line.
LIST- HYPERLINK- IMAGES
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
Lecture HTML Images. Use for Images Photos and Graphics Buttons for Navigation Bullets for Lists Backgrounds Symbols and Icons Logos.
Computer Science 1611 Internet & Web Creating Webpages with Style Hypertext and the HTML Markup Language (continued)
Cos 125 DAY 14. Agenda Assignment #3 Graded 11 A’s, 5 non-submits Problems include Not uploading assignment sheet in WebCT Not uploading graphics to web.
AdvWeb-1/12 DePaul University SNL 262 Web Page Design Chapt 10 - Putting Graphics on A Web Page Instructor: David A. Lash.
HTML Lesson 1 TBE 540 Farah Fisher. Prerequisites Before beginning this lesson, the student must be able to… Access web pages and navigate the web Access.
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Adding Images & Working with Images Unit 2. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date:08/10/2009 Period : Summary: To display Art To display Photographs.
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.
Using images with XHTML Please use speaker notes for additional information!
CIS—100 Chapter 15—Windows Vista 1. Parts of a Window 2.
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.
XHTML Images. Images are important Purpose: to enhance your web site. Add only when they complement or add additional impact to your message.
1 Mastering the Internet and HTML Images and Image Tags.
Understanding HTML Code
Web Design-Lecture2-QN-2003 Web Design Microsoft FrontPage®
Images in HTML PowerPoint How images are used in HTML.
1 Basic HTML. 2 Part 1: Basic Web Page Production.
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
C1999 Kathleen Schrock 1 Basic HTML By Kathy Schrock.
Day 4.  Assignment 1 Due  Assignment 2 Posted Assignment 2 Posted  Due Feb 9:35 AM  3 8:30 AM  Today we will look at creating and using.
HTML, Third Edition--Illustrated Brief 1 HTML, Third Edition Illustrated Brief Unit D Adding Graphics and Multimedia.
 Every aspect of a Web Page should reflect the goals that led you to create the page in the first place. Not only should the text and graphics themselves.
Adobe Dreamweaver CS3 Revealed CHAPTER FIVE: USING HTML TABLES TO LAY OUT A PAGE.
Creating Web Pages with Links, Images, and Formatted Text
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
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.
HTML Lesson 3 Hyper Text Markup Language. Assignment Part 2  Set the file name as “FirstName2.htm”  Set the title as “FirstName LastName First Web Site”
Notes Chapter 10—Adding Graphics. There are two kinds of graphics on the Internet: those you can use on your own Web pages, and those you cannot.  Many.
COS 125 Day 4. Agenda Assignment 1 Due Assignment 2 Posted –Due Feb 9:35 AM Today we will look at creating and using images Examples –
Internet Applications Development Lecture 4 L. Obead Alhadreti.
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.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
Enhancing Your Web Site 2 assignments: 1st—complete the worksheet 2nd—create your 3RD HTML web page following the directions in this PowerPoint where it.
Basic Webpage Design Mark-up html document with images.
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 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
1 Start TextEdit. 2 Creating a Home Page  A home page is the main page of a Web site –Visitors usually view the home page first –Identify the purpose.
1 Creating Links Lesson 2. 2 In the center column type : Home | Order Now | Contact Us This is the navigation button which will link to the other pages.
REEM ALMOTIRI Information Technology Department Majmaah University.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
Images.
Images in HTML PowerPoint How images are used in HTML
Images, Links and Multimedia
Chapter A - Getting Started with Dreamweaver MX 2004
Enhancing Your Web Site
Linking With Graphics INP150: Basic HTML March 25, 2002.
Enhance your website.
Creating a Web Site with Links
Project 4 Creating an Image Map.
Basic HTML.
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

Graphics Basics Two forces are always at odds when you post graphics and multimedia on the Internet. Your eyes and ears want everything to be as detailed and accurate as possible, but your clock and wallet want files to be as small as possible. Intricate, colorful graphics mean big file sizes, which can take a long time to transfer even over a fast connection.

The resolution of an image is the number of individual dots, or pixels (the individual dots that make up a digital image), that make up an image. Large, high-resolution images generally take longer to transfer and display than small, low-resolution images.

You might be surprised to find that resolution isn’t the most significant factor determining an image file’s storage size (and transfer time). This is because images used on Web pages are always stored and transferred in compressed form. Image compression is the mathematical manipulation that images are put through to squeeze out repetitive patterns.

There as many uses for Web page graphics as there are Web pages, but four types of graphics are by far the most common: Photos of people, products, or places Graphical banners and logos Snazzy-looking buttons or icons to link between pages Background textures or wallpaper to go behind pages

Placing an Image on a Web Page To put an image on a Web page, first move the image file into the same directory folder as the HTML text file. Insert the following HTML tag at the point in the text where you want the image to appear. Use the name of your image file instead of sample.jpg: <img src=“sample.jpg” />

If you guessed that img stands for image, you’re right; src stands for source, which is a reference to the location of the image file. You may also use relative addresses such as photos/sample.jpg or../smiley.jpg.

Labeling an Image The alt stands for alternate text because this message will appear in place of the image in older Web browsers that don’t display graphics, or for those users who choose to turn off automatic image downloading in their Web browser preferences.

Graphics files sometimes take a while to transfer over the Internet, most Web browsers show the text on a page first with the alt messages in place of the graphics. Even after the graphics replace the alt messages, the alt message appears in a little box whenever the mouse pointer passes over an image.

Images That Are Links You can make any image into a clickable link to another page with the same <a href> tag used to make text links. Normally, Web browsers draw a colored rectangle around the edge of each image link. Like text links, the rectangle usually appears blue to people who haven’t visited the link recently, and purple to people who have. Since you seldom, if ever, want this unsightly line around your beautiful buttons, you should always include border=“0” in any <img /> tag within a link.

Horizontal Image Alignment You can use <div align=“center”>, <div align=“right”> and <div align=“left”>. You can also make text wrap around images, you do this by including an align attribute within the <img /> tag itself. <img align=“left” /> aligns the image to the left and causes text to wrap around the right side of it. As you’d expect,<img align=“right” /> aligns the image to the right and causes text to wrap around the left side of it.

<img align=“left” /> aligns the image to the left and causes text to wrap around the right side of it. As you’d expect,<img align=“right” /> aligns the image to the right and causes text to wrap around the left side of it. You can’t use <img align=“center”/> because text won’t wrap around a centered image.

Vertical Image Alignment Sometimes, you may want to insert a small image right in the middle of a line of text; or you might like to put a single line of text next to an image as a caption. In either case, it would be handy to have some control over how the text and images line up vertically. Should the bottom of the image line up with the bottom of the letters, or should the text and images all be arranged so their middles line up.

You can choose between these and several other options: To line the up the top of an image with the top of the tallest image or letter on the same line, use <img align=“top” />. To line up the bottom of an image with the bottom of the text, use <img align=“bottom” />. To line up the middle of an image with the baseline of the text, use <img align=“middle” />.

You can choose between these and several other options: To line up the bottom of an image with the bottom of the lowest image or letter on the same line, use <img align=“absbottom” />. To line up the middle of an image with the overall vertical center of everything on the line, use <img align=“absmiddle” />.

HTML Tag and Attributes Covered TagAttributeFunction Places an image file within the page src=“...”The address or filename of the image. alt=“…”A text message that can be displayed in place of the image. align=“…Determines the alignment of the given image. If left or right, the image is aligned to the left or right column, and all following text flows beside that image. All other values, such as top, middle, bottom, absmiddle, or absbottom, determine the vertical alignment of this image with other items in the same line.

Workshop How would you insert an image file named elephant.jpg at the very top of a Web page? How would you make the word Elephant appear whenever the actual elephant.jpg image couldn’t be displayed by a Web browser? Write the HTML to make the elephant.jpg image appear on the right side of the page, with a big headline reading “Elephants of the World Unite!” on the left side of the page next to it.

Write the HTML to make a tiny image of a mouse (named mouse.jpg) appear between the words “cats and dogs”, and the words “lions and tigers”. Suppose you have a large picture of a standing elephant named elephant.jpg. Now make a small image named fly.jpg appear to the left of the elephant’s head and mouse,jpg appear next to elephant’s right foot.