Iframes & Images Using HTML.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Advertisements

Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Working with Images and HTML
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Adobe Flash CS4 – Illustrated Unit E: Optimizing and Publishing a Movie.
© 2011 Delmar, Cengage Learning Chapter 13 Preparing Graphics for the Web.
Add Images to Improve Your Presentation Day 8. You will learn to Understand Graphics Formats Find Graphics Create Your Own Images Insert an Image on Your.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
Chapter 4 Adding Images. Inserting and Aligning Images Using CSS When you choose graphics to add to a web page, it’s important to use graphic files in.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
HYPERTEXT MARKUP LANGUAGE (HTML)
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
Chapter 14-Designing for the World Wide Web. Overview Introducing multimedia on the Web. Designing text for the Web. Creating images for the Web. Adding.
WEB GRAPHICS. The Pixel Computer displays are comprised of rows and columns of pixels. Pixels are indivisible. Some common screen resolutions are:, 600.
Creating and Editing a Web Page
Adding Images & Working with Images Unit 2. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date:08/10/2009 Period : Summary: To display Art To display Photographs.
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
The Internet 8th Edition Tutorial 9 Creating Effective Web Pages.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Chapter 4 Adding Images. Chapter 4 Lessons Introduction 1.Insert and align images 2.Enhance an image and use alternate text 3.Insert a background image.
Colors, Images, & Image Maps. Working with Color Colors are defined in terms of RGB Triplet –Red, Green, Blue –0 to 255 in intensity –(00, 00, 00) is.
HTML Boot Camp: Rules and Images
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
IT Introduction to Website Development Welcome!
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
XHTML Images. Images are important Purpose: to enhance your web site. Add only when they complement or add additional impact to your message.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Images in web pages. Images Why do we use images? They add interest, and keep the user from being bored They convey information –Charts are easier to.
Images & Image Maps 16 th February. Images & Image Maps Web authors can add icons, logos and high impact images to their pages Images enhance web pages.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
1 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Images. The Element To place an image on our web page, we use the self-closing element: The src attribute ("source") is required and supplies the name.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Adding Images Learning Web Design: Chapter 7. Using an Image Images have many purposed on a Web site Used as a static image To add illustration: ex. A.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
Graphics & Images What File Format Do I Use?. Graphics & Images …..are visual images presented on some form of media (drawings, print, web, digital video)
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer block.
FILE TYPES FOR WEB DESIGN 1 HOW SHOULD I SAVE?. GRAPHICS INTERCHANGE FORMAT (GIF) Best used for flat-color, sharp-edged art or text Clip art, logos Compression.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
Kevin Murphy Images and Web Pages Masters Project CS 490.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Slide 1 Graphics (Characteristics 1) Images have various characteristics that affect performance Size (number of pixels) – Large images can be several.
REEM ALMOTIRI Information Technology Department Majmaah University.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
Inserting and Working with Images
2.01 Understand Digital Raster Graphics
Hosted by Coach Slanina
2.01 Investigate graphic image design.
Enhancing a Document Part 1
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Enhancing a Document Part 1
Graphics (Characteristics 1)
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Hyperlinks, Images, Comments, and More…
Attribute of heading, <p> and <hr> tag
2.01 Investigate graphic image design.
Presentation transcript:

Iframes & Images Using HTML

HTML Iframes An iframe is used to display a web page within a web page. Syntax for adding an iframe: <iframe src="URL"></iframe> The URL points to the location of the separate page.

Iframe Attributes Src (source) Height Width Frameborder Align

Youtube videos using IFrame You can add youtube videos using the Iframe: Example: <iframe width="420" height="345" src="http://www.youtube.com/embed/vP0cUBi4h wE"> </iframe> <iframe src="http://www.dailymotion.com/embed/video/x 26jsjo_four-stories-to-watch-in-week-5-of-the- sec_sport?PARAMS" width="400" height="400" frameborder="2">

Add images to your pages. Images and Objects Objectives Upon completing this section, you will be able to: Add images to your pages.

Adding Images to Your Site Images and graphics can really bring your site to life. Different image formats you can use on the Web (such as GIFs, JPEGs, and PNGs) Issues in adding Image: Choosing right format Copying Images from other sites.

Types of Image Formats ❑ Bitmapped graphics divide a picture into a grid of pixels and specify the color of each pixel, much as a computer tells a screen the color of each pixel. Broadly speaking, bitmaps are ideal for photographs and complicated gradations of shade and color. There are several different Bitmap formats; common ones include JPEG, GIF, TIFF, PNG, and the rather confusingly named bitmap or BMP. ❑ Vector graphics break the image into lines and shapes, and store the lines as coordinates. They then fill the spaces between the lines with color. Vector graphics are commonly used for line art, illustration, and animation. More recently some formats such as Flash and SVG are making use of vector graphics.

Bitmap Images Most static images on the Web are bitmapped images.

Types of Bitmap Images Browsers tend to support three common bitmap graphics formats: ❑ GIF: Graphics Interchange Format ❑ JPEG: Joint Photographic Experts Group Format ❑ PNG: Portable Network Graphics

Keeping File Sizes Small The rule of thumb is: ❑ Use JPEGs for photo-realistic pictures with a lot of detail, or subtle shade differences you want to preserve. ❑ Use GIFs for images with flat color (rather than textured colors), and hard edges, such as diagrams, text, or logos. You can also consider using PNGs if you do not need the advanced features such as transparency, or if you know the majority of your visitors will be using more recently released browsers.

Illustration of Image Types

Vector Images Illustration and animation software tends to use vector formats to save images, and the most popular vector graphics format on the Web is Flash. Browsers and XHTML do not, by default, support any vector graphics formats, although the main browsers now ship with the Flash Player that is required to view Flash files.

Types of Vectors Images ❑ Flash Files: Flash is currently the most popular way of deploying vector graphics and animations on the Web. ❑ SVG: W3C developed Scalable Vector Graphics (SVG), which (like XHTML) is written in XML, and would thus be easily integrated with XHTML (Furthermore, it is an open standard, not the creation of an individual company as Flash is.) A number of tools support SVG, although at the time of this writing it is not used very widely. Microsoft has also come up with a technology called Silverlight that uses vector graphics and competes with Flash.

Adding Images Using the <img> Element <IMG>This element defines a graphic image on the page. It must carry: src attribute indicating the source of the image an alt attribute whose value is an alternate description for the image in case it does not load or the user has a visual impairment.

Attributes of <img> <img> element can carry the following attributes: src alt align border height width hspace vspace longdesc name

Attributes Description Align Attribute:

Attributes Description Border Attribute: Specifies the width of the border around the image in pixels: Say border=”4” Height and Width Attributes: The height and width attributes specify the height and width of the image: height=”120” width=”180” The values for these attributes are almost always shown in pixels.

Attributes Description hspace and vspace Attributes: used to control the amount of whitespace around an image. hspace=”10” vspace=”14”

Attributes Description longdesc Attribute: The longdesc attribute is used to indicate the URL of a document (or part of a document) containing a description for the image in more detail. name Attribute: The name attribute allows you to specify a name for the image so that it can then be referenced from script code. It is the predecessor to, and has been replaced by, the id attribute. name=”image_name”

Some Examples on images 1) <IMG SRC=“jordan.gif“ border=4> 2) <IMG SRC=" jordan.gif" width="60" height="60"> 3) <IMG SRC=“jordan.gif" ALT="This is a text that goes with the image"> 4) <IMG SRC=" jordan.gif “ Hspace="30" Vspace="10" border=20> 5) < IMG SRC =" jordan.gif“ align="left"> blast blast blast blast blast

Adding Images Using the <object> Element <Object>This element is also used to add a graphic image on the page. It must carry: Data attribute indicating the source of the image <object width="400" height="400" data="w3.jpg"></object>

Adding Audio HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element. Example: <audio controls>   <source src="horse.ogg" type="audio/ogg">   <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>

Audio Formats and Browser Support

MIME Types for Audio Formats HTML5 Audio Tags

Other ways to add audios <Embed> <embed src=“test1.mp3"> <object> <object data=“test2.mp3"> <param name="autoplay" value="false"> </object>

Adding Video HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page: the <video> element. Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the <video> element. Internet Explorer 8 and earlier versions, do not support the <video> element. You should also insert text content between the <video> and </video> tags for browsers that do not support the <video> element. The <video> element allows multiple <source> elements. <source> elements can link to different video files. The browser will use the first recognized format.

Adding Video <video width="320" height="240" controls>  <source src="movie.mp4" type="video/mp4">   <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video>

Video Formats and Browser Support

MIME Types for Video Formats

Other ways to add Videos <embed> <embed src=“test.swf" height="400" width="400"> <object> <object data="intro.flv" height="200" width="200"></object>