

Web Design
Presentation
•
Computers
•
10th - 11th Grade
•
Medium
Ameena Qudah
Used 659+ times
FREE Resource
11 Slides • 10 Questions
1
Web Design
Picture Element

2
Poll
Put each HTML element with the correct definition:
<img>
<map>
<area>
<picture>
Defines a container for multiple image resources
Defines an image
Defines an image map
Defines a clickable area inside an image map
3
Lesson Objectives
Display picture using Bandwidth.
Select and add images of all formats.
Design different pictures for different devices or screen sizes
4
The HTML <picture> Element
The HTML <picture> element gives web developers more flexibility in specifying image resources.
The <picture> element contains one or more <source> elements, each referring to different images through the srcset attribute. This way the browser can choose the image that best fits the current view and/or device.
5
The HTML <picture> Element
Each <source> element has a media attribute that defines when the image is the most suitable.
Example:
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_images_picture1
6
Picture Element
Note:
Always specify an <img> element as the last child element of the <picture> element. The <img> element is used by browsers that do not support the <picture> element, or if none of the <source> tags match.
7
Open Ended
When Do you think it is suitable to use the <picture> elements instead of the <img> element?
8
Watch This Video
https://www.youtube.com/watch?v=QINlm3vjnaY
9
When to use the Picture Element
There are two main purposes for the <picture> element:
1. Bandwidth
2. Format Support
10
Bandwidth
If you have a small screen or device, it is not necessary to load a large image file. The browser will use the first <source> element with matching attribute values, and ignore any of the following elements.
11
Format Support
Some browsers or devices may not support all image formats. By using the <picture> element, you can add images of all formats, and the browser will use the first format it recognizes, and ignore any of the following elements.
12
Example
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_images_picture_format
13
Multiple Choice
In the Previous Example the picture displayed on the Webpage is :
img_avatar.png
img_girl.jpg
img_beatles.gif
14
Note:
The browser will use the first <source> element with matching attribute values, and ignore any following <source> elements.
15
Open Ended
Exercise 1:
Use the <picture> element to display different pictures that celebrate the Woman's National Day . Remember to use the srcset attribute.
16
Open Ended
what are the two main purposes for using the image element?
17
Multiple Choice
Can I use an image without giving credit to the website and owner of the photo?
yes
no
18
Multiple Choice
Why should the srcset attribute be used in an HTML picture element?
To find an alternative image if the one you want isn't working
To send the user to another webpage where they might find the right image
To choose the image that best fits the current view and/or device.
It allows a user to report an image that isn't working on a website
19
Multiple Choice
After I save an image to my computer, what should I do before I can add that image to my website?
click add image and then upload the picture.
click and drag the image from my desktop.
nothing, it automatically goes to my links column.
20
Multiple Choice
Why should the alt attribute be used in an HTML image element?
To find an alternative image if the one you want isn't working
To send the user to another webpage where they might find the right image
It is a brief description of an image if for some reason the user cannot see the image
It allows a user to report an image that isn't working on a website
21
Multiple Choice
Which is the correct way of adding a url to an image HTML element?
<img src="globe">
<img scr="globe.png">
<img src="globe.png">
img src=globe.png>
Web Design
Picture Element

Show answer
Auto Play
Slide 1 / 21
SLIDE
Similar Resources on Wayground
15 questions
Python
Presentation
•
10th - 12th Grade
14 questions
Public Speaking
Presentation
•
10th - 11th Grade
14 questions
Multiplying polynomials (FOIL)
Presentation
•
10th - 11th Grade
17 questions
Programming Recap 2
Presentation
•
10th - 11th Grade
16 questions
Gas Laws Review (participation)
Presentation
•
10th - 12th Grade
16 questions
Intro to Ellipses
Presentation
•
10th - 12th Grade
16 questions
pronoun
Presentation
•
10th Grade
15 questions
Volume of a Cone/Sphere
Presentation
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
How much do you know about our Portrait of an Eagle?
Quiz
•
10th Grade
10 questions
Fast Food Slogans
Quiz
•
6th - 8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
[AP CSP] Python Coding: Functions, Parameters, Return
Presentation
•
9th - 12th Grade
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
20 questions
APCS Unit 1A
Quiz
•
9th - 12th Grade
24 questions
Binary
Quiz
•
9th - 12th Grade