Using images with XHTML Please use speaker notes for additional information!

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

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.
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.
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.
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.
Using color and fonts in HTML and XHTML Please use speaker notes for additional information!
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.
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.
Explanation of Web 6, Web 7 and Web 9 at my site Please be sure to bring up the speaker notes for the explanation Intro - Web 6, Web 7 and Web 9.
Creating and Editing a Web Page
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.
Unit E. Image Measurements The size of an image can be measured 2 ways: Dimensions: the height and width, measured in pixels. File Size: measured in Kilobytes.
CSS in XHTML continued Please use speaker notes for additional information!
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 Mastering the Internet and HTML Images and Image Tags.
Images in HTML PowerPoint How images are used in HTML.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Reference for CIS127 and CIS 137.
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.
HTML, Third Edition--Illustrated Brief 1 HTML, Third Edition Illustrated Brief Unit D Adding Graphics and Multimedia.
Getting Started with HTML Please use speaker notes for additional information!
9 April 2008 Creating Web Pages with Links, Images, and Formatted Text WEB 101 – HTML Prof: Mariana Mendoza-Botero Escuela de Administración de Empresas.
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.
Images. The Element To place an image on our web page, we use the self-closing element: The src attribute ("source") is required and supplies the name.
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.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
Lesson 4.
1 Creating Links within a Web Page  These links are especially useful on long Web pages  Links at the top of the page point to areas further down the.
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.
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”
Microsoft Expression Web-Illustrated Unit E: Working with Pictures.
Tables with XHTML Please use speaker notes for additional information!
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.
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.
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.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
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 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.
Images. Working with Images What is the difference between the GIF and JPEG formats? GIF – Graphic Interchange Format Limit to 256 colors Often used for.
REEM ALMOTIRI Information Technology Department Majmaah University.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
Images.
Images in HTML PowerPoint How images are used in HTML
Inserting and Working with Images
Images, Links and Multimedia
Enhancing Your Web Site
Linking With Graphics INP150: Basic HTML March 25, 2002.
GRAPHICS(IMAGES) Explained By: Sarbjit Kaur.
COMPUTING FUNDAMENTALS
Chapter 3 Images.
Enhance your website.
Creating a Web Site with Links
Images.
Images.
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
USING IMAGES This is the bottom of the page. Note the alignment of having text before and after, at the top, in the middle and at the bottom. Code is on.
Attribute of heading, <p> and <hr> tag
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

Using images with XHTML Please use speaker notes for additional information!

This is CIS! This is the image of CIS I created using Word! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " Working with images etc... This shows the alt.

This is the picture again This is the image aligned to the top <img align="top" src= "CISa.gif" width="257" height="237" alt="CISa image" /> Here I am showing text and then the image. Here I am showing the text before the image and the text is aligned to the top of the image rather than the bottom.

This is the image aligned in the middle <img align="middle" src= "CISa.gif" width="257" height="237" alt="CISa image" /> of the screen. This is illustrating wrap, so I need to type lots of text and since I have nothing to say, I am going to just keep typing, and typing, and typing, and typing, and typing, and typing, and typing and typing until hopefully I have typed enough to illustrate how it will wrap around the image. Use align=“middle to align the text with the middle of the image. When the code is enough to fill all of the area beside the image, it will wrap when it reaches the bottom.

<img hspace= "15" vspace = "15" align="left" src= "CISa.gif" width="257" height="237" alt="CISa image" /> This is illustrating wrap, so I need to type lots of text and since I have nothing to say, I am going to just keep typing, and typing, and typing, and typing, and typing, and typing, and typing and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing until hopefully I have typed enough to illustrate how it will wrap around the image. Notice that in this one, I have added horizontal and vertical spacing to move the text away from the image.

This is illustrating wrap, so I need to type lots of text and since I have nothing to say, I am going to just keep typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing until hopefully I have typed enough to illustrate how it will wrap around the image. Center needs to be enclosed in something like headers that allow centering.

I don't remember the size of this original image, so I am just going to play. In fact, to make an image smaller or larger, you should keep the height and width the same proportions that they were originally.

Now I am going to warp the height which seems to work well with the same height and width for this image.

Now let's use this image as a means of navigating - I will obviously use a small image for this... Remember, as I learned, top is a default that does not have to be established with NAME in regular HTML is some browsers. Remember also that in XHTML, name is replaced with id. To get rid of the border around the image, I can do the following: The problem with this is that it only works well when using an arrow or something that makes it clear that this is for the user to press. Usually after the a href tag and before the close a tag, I insert text. The user click on the text to follow the link. In this example, I am using an image in this spot so the user will click on the image.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " Working with images etc... This is CIS! This is the image of CIS I created using Word! This is the picture again This is the image aligned to the top <img style="vertical-align: top;" src= "CISa.gif" width="257" height="237" alt="CISa image" /> This is the image aligned in the middle <img style="vertical-align: middle;" src= "CISa.gif" width="257" height="237" alt="CISa image" /> of the screen. This is introimagesX1.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " Working with images etc... <img style="float: left;" src= "CISa.gif" width="257" height="237" alt="CISa image" /> This is illustrating wrap, so I need to type lots of text and since I have nothing to say, I am going to just keep typing, and typing, and typing, and typing, and typing, and typing, and typing and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing, and typing until hopefully I have typed enough to illustrate how it will wrap around the image. Notice that in this one, I have added horizontal and vertical spacing to move the text away from the image. This is illustrating wrap, so I need to type lots of text and since I have nothing to say, I am going to just keep typing, and typing, and typing, and typing, and typing, and typing, and typing and typing until hopefully I have typed enough to illustrate how it will wrap around the image. <img src= "CISa.gif" width="257" height="237" alt="CISa image" /> Center needs to be enclosed in something like dividsions that allow centering.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " Working with images etc... I don't remember the size of this original image, so I am just going to play. In fact, to make an image smaller or larger, you should keep the height and width the same proportions that they were originally. Now I am going to warp the height which seems to work well with the same height and width for this image. This is introimagesX3.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " Working with images etc... Now let's use this image as a means of navigating - I will obviously use a small image for this... Remember, as I learned, top is a default that does not have to be established with NAME in regular HTML is some browsers. Remember also that in XHTML, name is replaced with id. To get rid of the border around the image, I can do the following: <img style="border:none;" width="75" height="75" src= "CISa.gif" alt="CISa image" /> The problem with this is that it only works well when using an arrow or something that makes it clear that this is for the user to press. This is introimagesX4.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " Working with images etc... Click on this image to see image enlarged. This is a horrible back ground image. Text and images are difficult to read. A background image should truly be in the background.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " Big image This is the large version of the image. <img border="0" width="50" height="50" src="CISa.gif" alt="CIS logo" /> Click on this image to return to previous page. The icon at the bottom is a link back to the original page. This is bigim.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " Working with images etc... body { background-image: url(myback.gif); } <img style="border: none" width="50" height="50" src="CISa.gif" alt="CISa" /> Click on this image to see image enlarged. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " Big image This is the large version of the image. <img style="border: none;" width="50" height="50" src="CISa.gif" alt="CIS logo" /> Click on this image to return to previous page. moreimX.html bigimX.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " Picture from a snow storm The snow of 1996! NOTE: This image is a picture that I took and had developed onto a disk. If it is not saved as a gif or jpeg image, it needs to be taken into an application package that deals with graphics and converted. Microsoft Photo Editor is a good possibility. I then put the image out on my site as snow.gif. Remember images are separate files. For this page, I have two things stored: snow.html and snow.gif. They are both in the same directory so I do not need to use any path to find the image. I strongly recommend storing you page and your images in the same directory! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " Picture from a snow storm The snow of 1996! NOTE: This image is a picture that I took and had developed onto a disk. If it is not saved as a gif or jpeg image, it needs to be taken into an application package that deals with graphics and converted. Microsoft Photo Editor is a good possibility. I then put the image out on my site as snow.gif. Remember images are separate files. For this page, I have two things stored: snow.html and snow.gif. They are both in the same directory so I do not need to use any path to find the image. I strongly recommend storing you page and your images in the same directory!