Download presentation
Presentation is loading. Please wait.
Published byAnnabel Knight Modified over 9 years ago
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 HAS 1. HEAD 2. BODY 4. HEADERS ….. 5. PARAGRAPH 6. Line break 7. HORIZONTAL LINE 8. 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 : GIFs and 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. Lossy compression 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 RESOLUTION FFOR WEB 72 PPI PPI =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 xxxx is 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: 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.COMHTMLDOG.COM OR http://w3schools.com/html/http://w3schools.com/html/
15
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.
16
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 wikispace page) Add the edited photos to your html file. Be sure to use width and length, alt and title.
17
EXTRA CREDIT – MORPH A FACE Upload and Morph a Face here Upload to your wikispaces page for credit. Upload and Morph a Face here http://morph.cs.st- andrews.ac.uk/Transformer / I made this guy younger
18
ADDING HYPER-LINKS VNHS website A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. The HTML tag defines a hyperlink. move the cursor over a link in a Web page ->turn into a little hand. The href attribute, which indicates the link’s destination. An unvisited link is underlined and blue A visited link is underlined and purple An active link is underlined and red http://www.vannuyshs.org
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.