1 / 18

* HTML * ADDING IMAGES AND LINKS

* HTML * ADDING IMAGES AND LINKS. WHAT WE WILL LEARN. 1. How to add an image to a website. 2. The different main image formats ? 3. What is resolution and what is a good resolution for an image on a website ? 4. HOW TO EDIT A PICTURE. What We Did Do So Far:.

maili
Download Presentation

* HTML * ADDING IMAGES AND LINKS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. * HTML* ADDING IMAGES AND LINKS

  2. WHAT WE WILL LEARN • 1. How to add an image to a website. • 2. The different main image formats ? • 3. What is resolution and what is a good resolution for an image on a website? • 4. HOW TO EDIT A PICTURE

  3. What We Did Do So Far: • HTML BASICS: YOU HAD TO UPLOAD A FILE THAT HAS1. HEAD <head> • 2. BODY <body> • 4. HEADERS <h1>….. <h6> • 5. PARAGRAPH <p> • 6. Line break <br/> • 7. HORIZONTAL LINE <hr/> • 8. <html > tag of course…. • IS YOUR FILE UPLODED TO WIKISPACES????

  4. SIZE OF IMAGES ON A WEBPAGE • Images are perhaps the largest files a new web designer will be handling. • Web pages should download as quickly as possible so…Don’t be oblivious to the file size of images, which can be extremely large. • You need to strike a balance between image quality and image size. • compressing images helps but to decide what is best suited for yourself is trial and error.

  5. FILE FORMATS • Most common : • GIFsand JPEGs- Both are compressed formats with different uses. TYPES OF COMPRESSION: • LOSSLESS-no loss of info • LOSSY-loses some of the info

  6. JPEGs & GIFs & PNGs Lossless compression • GIFs-Graphic Interchange Format:- - • no more than 256 colors- • The lower the number of colors -the lower the file size. GIFS ( & PNGs) SHOULD BE USED FOR IMAGES WITH SOLID COLORS. Lossycompression • JPEGs - mathematical algorithm compresses the image and will distort the original slightly. • The lower the compression, the higher the file size, but the clearer the image. JPEGS SHOULD BE USED FOR IMAGES SUCH AS PHOTOGRAPHS. • Gifs xxx.gif JPEG : xxx.jpg

  7. STANDARD RESOLUTIONFFOR WEB 72 PPIPPI =Pixels Per Inch

  8. A Photo Editor can greatly improve an image

  9. YOU CAN EDIT YOUR IMAGES ON VARIOUS PROGRAMS • PIC MONKEY (No registration) • http://www.picmonkey.com/ • Or PHOTOSHOP EXPRESS (you have to register but gives you more options!) • http://www.photoshop.com/tools/expresseditor

  10. WITH PHOTO EDITORS You can… • Crop & RESIZE • Eliminate red eye • Add interesting effects • Add text • Change coloring • Etc…. • ENDLESS OPORTUNITIES.

  11. ADDING IMAGES in HTML – IMG TAG<img /> <imgsrc=”xxxx.jpg”/> xxxxis the name of the image file. .jpg (the extension) tells the browser what is the name of the image. The image should be in the same folder of the webpage =the .html File • (or in a subfolder /images/xxx.jpg )

  12. HTML Images – Set Height and Width of an Image • The height and width attributes are specified in pixels by default: • <imgsrc=“SmilingCat.jpg" alt=“CAT" width="304" height="228"> • Best to specify both height width attributes • If these attributes are set, the space required for the image is reserved when the page is loaded. • Otherwise the browser does not know the size of the image. The page layout will change during loading (while the images load).

  13. TIPS • USE IMAGES CAREFULLY- Think about loading time MAKE SURE THEY “STAY PUT” IN SAME LOCATION SO THE BROWSER CAN FIND THEM There are many other fancy things you can do to an image… LEARN MORE AT HTMLDOG.COM OR http://w3schools.com/html/

  14. DECISIONS, DECISIONS • 1: who is your partner • 2. What is your website about? • Ideas; Music groups; A favorite TV shows; A famous person (Obama, or event) ; A Place you want to visit; A subject that interests you such as cars, musical instruments, computers, games, books, etc.

  15. Today • Create a folder for your website on the desktop • Start gathering images for your web site by going to google images. • Upload 2 images to picmonkey and edit them • (upload the before and after images to your wikispacepage) • Add the edited photos to your html file. Be sure to use width and length, alt and title.

  16. EXTRA CREDIT – MORPH A FACEUpload and Morph a Face hereUpload to your wikispaces page for credit. • http://morph.cs.st-andrews.ac.uk/Transformer • / I made this guy younger 

  17. ADDING HYPER-LINKS <a href="http://www.vannuyshs.org/">VNHS website</a> A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. The HTML <a> tag defines a hyperlink. • move the cursor over a link in a Web page ->turn into a little hand. • The hrefattribute, which indicates the link’s destination. • An unvisited link is underlined and blue • A visited link is underlined andpurple • An active link is underlined and red • http://www.vannuyshs.org

More Related