SlideShare a Scribd company logo
IT223 – Web System and
Techologies
Lesson #2
(Web Development)
Lesson Flow
• Images & File Paths
• Audio & Video
<img> Image Element
(Indicates an image)
Syntax:
<img src=“image.png” alt=“image” />
<img src=“image.png” width=“200” height=“200” alt “image” />
<img> image Element Attributes
(Common Attributes Used)
Attribute Description
src Indicates the File Path to load the image
width Indicates the width
height Indicates the height
alt Text shown when image fails to load
Src Attribute
(can take a value of a URL or a File Path.)
Syntax:
<img src=“image.png”/>
Width & Height Attribute
(Takes a number in pixels or percentage)
Syntax:
<img src=“image.png” width=“200” height=“200”/>
<img src=“image.png” width=“50%” height=“5%”/>
if you only indicate one of the two then the aspect ratio would be retained
Alt Attribute
(Shows the text when the image failed to load)
Syntax:
<img src=“image.png” alt=“error” />
Image Links
(Surround the image with <a> tag to make it clickable)
Syntax:
<a href = “home.html”>
<img src=“image.png” alt=“error” />
</a>
File Paths
(Different Level of File Paths)
Value Description
“image.png” The file is in the same folder
“images/image.png” The file is in the folder images in the
current folder
“/images/image.png” The file is in the folder images at the
root of the current web
“../image.png” The file is in the folder one level up
from the current folder
Absolute Path The file’s Path is fully specified
<source> Source Element
Indicates files for the browser to choose.
Source Tags are used within <audio>, <video> and <picture> elements
Syntax:
<source src = “music.mp3” type = “audio/mp3”>
<source> Source Element
(Common Attributes Used)
Attribute Description
src Indicates the File Path
type Indicates the MIME-type of the resource
Src Attribute
(Can take a value of a URL or a File Path.)
<source src = “music.mp3”>
Type Attribute
(Specifies the MIME-Type of the Source)
<source src=“music.mp3” type =“audio/mp3”>
<source src=“vid.mp4” type=“video/mp4”>
MIME-Type helps in identifying file types so it can be handled accordingly
<audio> Audio Element
(Used to play audio files)
Syntax:
<audio controls>
<source src=“music.mp3” type=“audio/mp3”>
</audio>
OR
<audio src=“music.mp3” controls>
</audio>
NOTE: If your browser does not supported the mp3 file use <source src=music.ogg type=“audio/ogg”>
<audio> Audio Element Attributes
(Common Attributes Used)
Attribute Description
src Indicates the File Path
control Shows controls like play, pause, volume
autoplay Play audio automatically when loaded
muted The audio would be muted by default
loop Makes the audio replay infinite times
Src Attribute
(can take a value of a URL or a File Path.)
Syntax:
<audio src=“audio.mp3”/>
Other Attributes
(Some attributes doesn’t need any value)
Syntax:
<audio src=“audio.mp3” controls autoplay loop muted />
<video> Video Element
(Used to play video files)
Syntax:
<video width=“320” height=“240” controls>
<source src=“vid.mp4” type=“audio/mp4”>
</video>
OR
<video src=“vid.mp4” width=“320” height=“240” controls>
</video>
Src Attribute
(can take value of a URL or File Path)
Syntax:
<video src=“vid.mp4” width=“320” height=“240” />
Other Attributes
(Some attributes doesn’t need any values)
Syntax:
<video src=“vid.mp4” width=“320” height=“240” controls autoplay loop muted />
Width & Height Attribute
(Takes a number in pixels or percentage)
Syntax:
<video src=“vid.mp4” width=“320” height=“240” />
<video src=“vid.mp4” width=“50%” height=“50%” />
If you only indicate one of the two then the aspect ratio would be retained.
Alubijid | Balubal | Cagayan de Oro | Claveria | Jasaan | Oroquieta | Panaon | Villanueva
Home of the Trailblazers

More Related Content

KEY
HTML5: Markup Evolved
PPT
05-06 HTML lecture FOR BS STUDENTS IUB.ppt
PPTX
Inserting Images and Embedding Tags
PPT
Types of background in MS Frontpage 2003
PPTX
Working on multimedia ppppppppppppp.pptx
PPTX
3Q_audio_presentation.ict for begginderss
PPTX
KEY
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
HTML5: Markup Evolved
05-06 HTML lecture FOR BS STUDENTS IUB.ppt
Inserting Images and Embedding Tags
Types of background in MS Frontpage 2003
Working on multimedia ppppppppppppp.pptx
3Q_audio_presentation.ict for begginderss
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues

Similar to Lesson-2.pptx this for html in the web course (20)

PPTX
HTML Attributes.pptx
PPTX
More on HTML Communication Skills BASICS
PPTX
Full Stack_HTML- Hypertext Markup Language
PPTX
PPTX
HTML (part ii).pptx
PPTX
HTML Video and Audio.pptx( code of enter html video and audio)
PPTX
HTML Images
KEY
HTML5: Are We There Yet?
PPTX
Designing web page marquee and img tag
PPTX
Html multimedia
PPTX
HTML5 - Insert images and Apply page backgrounds
PPTX
Html 5 full course
PDF
Html tutorials-infotech aus
PDF
Html5 Media 1st Edition Kevin Martin Shelley Powers
PDF
HTML5 Audio & Video
PDF
Html attributes
PPTX
Html images and html backgrounds
PPT
Intro to HTML5 audio tag
PPT
Chapter 11 - Web Design
PPT
Chapter11
HTML Attributes.pptx
More on HTML Communication Skills BASICS
Full Stack_HTML- Hypertext Markup Language
HTML (part ii).pptx
HTML Video and Audio.pptx( code of enter html video and audio)
HTML Images
HTML5: Are We There Yet?
Designing web page marquee and img tag
Html multimedia
HTML5 - Insert images and Apply page backgrounds
Html 5 full course
Html tutorials-infotech aus
Html5 Media 1st Edition Kevin Martin Shelley Powers
HTML5 Audio & Video
Html attributes
Html images and html backgrounds
Intro to HTML5 audio tag
Chapter 11 - Web Design
Chapter11
Ad

Recently uploaded (20)

PDF
The Advantages of Working With a Design-Build Studio
PPTX
AD Bungalow Case studies Sem 2.pptxvwewev
PPTX
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
PPTX
Special finishes, classification and types, explanation
PPTX
Causes of Flooding by Slidesgo sdnl;asnjdl;asj.pptx
PPTX
An introduction to AI in research and reference management
PDF
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
PDF
YOW2022-BNE-MinimalViableArchitecture.pdf
PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
PDF
Quality Control Management for RMG, Level- 4, Certificate
PPTX
mahatma gandhi bus terminal in india Case Study.pptx
PDF
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
PDF
Interior Structure and Construction A1 NGYANQI
PDF
Urban Design Final Project-Context
PPTX
YV PROFILE PROJECTS PROFILE PRES. DESIGN
PPTX
CLASSIFICATION OF YARN- process, explanation
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
PPT
pump pump is a mechanism that is used to transfer a liquid from one place to ...
PPT
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
The Advantages of Working With a Design-Build Studio
AD Bungalow Case studies Sem 2.pptxvwewev
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
Special finishes, classification and types, explanation
Causes of Flooding by Slidesgo sdnl;asnjdl;asj.pptx
An introduction to AI in research and reference management
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
YOW2022-BNE-MinimalViableArchitecture.pdf
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
Quality Control Management for RMG, Level- 4, Certificate
mahatma gandhi bus terminal in india Case Study.pptx
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
Interior Structure and Construction A1 NGYANQI
Urban Design Final Project-Context
YV PROFILE PROJECTS PROFILE PRES. DESIGN
CLASSIFICATION OF YARN- process, explanation
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
pump pump is a mechanism that is used to transfer a liquid from one place to ...
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
Tenders & Contracts Works _ Services Afzal.pptx
Ad

Lesson-2.pptx this for html in the web course

  • 1. IT223 – Web System and Techologies Lesson #2 (Web Development)
  • 2. Lesson Flow • Images & File Paths • Audio & Video
  • 3. <img> Image Element (Indicates an image) Syntax: <img src=“image.png” alt=“image” /> <img src=“image.png” width=“200” height=“200” alt “image” />
  • 4. <img> image Element Attributes (Common Attributes Used) Attribute Description src Indicates the File Path to load the image width Indicates the width height Indicates the height alt Text shown when image fails to load
  • 5. Src Attribute (can take a value of a URL or a File Path.) Syntax: <img src=“image.png”/> Width & Height Attribute (Takes a number in pixels or percentage) Syntax: <img src=“image.png” width=“200” height=“200”/> <img src=“image.png” width=“50%” height=“5%”/> if you only indicate one of the two then the aspect ratio would be retained
  • 6. Alt Attribute (Shows the text when the image failed to load) Syntax: <img src=“image.png” alt=“error” />
  • 7. Image Links (Surround the image with <a> tag to make it clickable) Syntax: <a href = “home.html”> <img src=“image.png” alt=“error” /> </a>
  • 8. File Paths (Different Level of File Paths) Value Description “image.png” The file is in the same folder “images/image.png” The file is in the folder images in the current folder “/images/image.png” The file is in the folder images at the root of the current web “../image.png” The file is in the folder one level up from the current folder Absolute Path The file’s Path is fully specified
  • 9. <source> Source Element Indicates files for the browser to choose. Source Tags are used within <audio>, <video> and <picture> elements Syntax: <source src = “music.mp3” type = “audio/mp3”>
  • 10. <source> Source Element (Common Attributes Used) Attribute Description src Indicates the File Path type Indicates the MIME-type of the resource
  • 11. Src Attribute (Can take a value of a URL or a File Path.) <source src = “music.mp3”> Type Attribute (Specifies the MIME-Type of the Source) <source src=“music.mp3” type =“audio/mp3”> <source src=“vid.mp4” type=“video/mp4”> MIME-Type helps in identifying file types so it can be handled accordingly
  • 12. <audio> Audio Element (Used to play audio files) Syntax: <audio controls> <source src=“music.mp3” type=“audio/mp3”> </audio> OR <audio src=“music.mp3” controls> </audio> NOTE: If your browser does not supported the mp3 file use <source src=music.ogg type=“audio/ogg”>
  • 13. <audio> Audio Element Attributes (Common Attributes Used) Attribute Description src Indicates the File Path control Shows controls like play, pause, volume autoplay Play audio automatically when loaded muted The audio would be muted by default loop Makes the audio replay infinite times
  • 14. Src Attribute (can take a value of a URL or a File Path.) Syntax: <audio src=“audio.mp3”/> Other Attributes (Some attributes doesn’t need any value) Syntax: <audio src=“audio.mp3” controls autoplay loop muted />
  • 15. <video> Video Element (Used to play video files) Syntax: <video width=“320” height=“240” controls> <source src=“vid.mp4” type=“audio/mp4”> </video> OR <video src=“vid.mp4” width=“320” height=“240” controls> </video>
  • 16. Src Attribute (can take value of a URL or File Path) Syntax: <video src=“vid.mp4” width=“320” height=“240” /> Other Attributes (Some attributes doesn’t need any values) Syntax: <video src=“vid.mp4” width=“320” height=“240” controls autoplay loop muted />
  • 17. Width & Height Attribute (Takes a number in pixels or percentage) Syntax: <video src=“vid.mp4” width=“320” height=“240” /> <video src=“vid.mp4” width=“50%” height=“50%” /> If you only indicate one of the two then the aspect ratio would be retained.
  • 18. Alubijid | Balubal | Cagayan de Oro | Claveria | Jasaan | Oroquieta | Panaon | Villanueva Home of the Trailblazers