XHTMLImagesCharacterEncoding

XHTMLImagesCharacterEncoding - CSE 102 Introduction to Web...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 102 Introduction to Web Design and Programming XHTML: Images & Character Encoding
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Practice file for today <? xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W#C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>My Practice Web Page</title> </head> <body> </body> </html>
Background image of page 2
Images To display an image alone in a browser you may use the a tag. Add to your practice page: <p><a href="http://www.du.edu/~jcalvert/hist/wh9j.jpg"> William Henry Harrison</a></p> To display an inline image within a page, use img: <img src="URL" width="…" height="…" alt="… " longdesc= "…"> URL points to a GIF, JPEG, or PNG img may be placed in any block-level or inline element except pre You should always include alt (including hw1) Add to your practice page: <img src="http://www.du.edu/~jcalvert/hist/wh9j.jpg" width="500" height="200" alt="An elongated William Henry Harrison" > Change the code such that when one clicks on the picture, the browser goes to: http://www.whitehouse.gov/history/presidents/wh9.html This is called a graphical link
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Organizing your own site images Place all images inside an images directory Be sure to do this for all assignments Inside your Web pages, you may then reference
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/13/2011 for the course CSE 102 taught by Professor Richardmckenna during the Spring '11 term at SUNY Stony Brook.

Page1 / 12

XHTMLImagesCharacterEncoding - CSE 102 Introduction to Web...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online