+ All Categories

Images

Date post: 07-Jan-2016
Category:
Upload: olina
View: 42 times
Download: 1 times
Share this document with a friend
Description:
Images. What did we do last week?. HTML pages. Last week you should have had something that looked like this. Tags. Start tag. Tags. End tag. Tags. Content. HTML pages. for what type of document your page is. HTML pages. HTML tags. HTML pages. are for the headers. - PowerPoint PPT Presentation
34
IMAGES
Transcript
Page 1: Images

IMAGES

Page 2: Images

What did we do last week?

Page 3: Images

HTML pages

Last week you should have had something that looked like this

Page 4: Images

Tags

Start tag

Page 5: Images

Tags

End tag

Page 6: Images

Tags

Content

Page 7: Images

HTML pages

<DOCTYPE> for what type of document your page is

Page 8: Images

HTML pages

HTML tags

Page 9: Images

HTML pages

<head> are for the headers

Page 10: Images

HTML pages

<title> for the webpage name

Page 11: Images

HTML pages

<body> tags are for….

Page 12: Images

HTML pages

…everything you want to display on the actual webpage

Page 13: Images

HTML pages

<h1> for Headings

Page 14: Images

HTML pages

<h2> Further Headings

Page 15: Images

HTML pages

<p> for paragraphs

Page 16: Images

HTML pages

<b> for bold

Page 17: Images

HTML pages

<i> for italics

Page 18: Images

HTML pages

<u> for underlined

Page 19: Images

Spot the difference

Page 20: Images

The bottom website is easier to read!

Page 21: Images

Blank Spaces (Indentations)

Blank lines

Page 22: Images

Blank Spaces (Indentations)

Indentations (Press the TAB button)

Page 23: Images

Saving Images

All images on your site need to be saved in your images folder

You can create sub folders to organise your images For example an animals folder for all animal

pictures You can display all the common image

types such as .JPG, .GIF and .PNG

Chose a PNG image over any other type!!!

Page 24: Images

Image Tag

Page 25: Images

Image Tag

No content?No end tag?

/> acts as an ending

Page 26: Images

Image Tag

Attributes are inside the tag

Page 27: Images

Image Tag

src = path to the image

Page 28: Images

Destination Paths

How do we set the image we want to display?

Open up the folder explorer and go to where your web page is

Write down which folder(s) you’d need to go into to find your saved image

Separate each folder with a / For example my cat picture is saved in

the “images” folder.

Page 29: Images

This is why we make sure all our webpages are in the top folder, and all our images are

in a sub folder!

Imagine the mess if we didn’t have any structure!

Page 30: Images

Image Tag

alt= alternate text

Page 31: Images

Alt text

What if the image can’t be displayed? Blind people Slow Internet

You can set alt text by using the “alt” attribute

Page 32: Images

Image Tag

Height and width

Page 33: Images

Height and Width

Your image might be way too big to fit nicely on the webpage

Can set the height and width in pixels Good practice

The browser will reserve space for the images If you don’t reserve space, the layout will

change as the images display

Page 34: Images

More Information

More information @ W3Schools http://www.w3schools.com/html/

html_images.asp Task

Open up the Images Worksheet presentation


Recommended