ITI 133 HTML5 Desktop and Mobile Level I

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

Chapter 4 Adding Images. Inserting and Aligning Images Graphics refer to the appearance of most non- text items on a web page, such as: – Photographs.
Tag and Attribute Understanding appropriate citations and copyrights using creative commons licenses. Marcus Clark.
Using Flickr in Education. Ambition in Action Topics /What is Flickr /Using Flickr /Copy right - Copy left /Educational usage.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Creative Commons
ITI 133: HTML5 Desktop and Mobile Level I
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.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
Web Development & Design Foundations with HTML5
Unit E. Image Measurements The size of an image can be measured 2 ways: Dimensions: the height and width, measured in pixels. File Size: measured in Kilobytes.
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.
1 Mastering the Internet and HTML Images and Image Tags.
Images Inserting an image on a web page. chcslonline.org2 ITEMS REQUIRED Go to the course download page on the course website and download the 3 images.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
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.
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
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.
License Basics April 20, 2010 Sue Gallaway, Centralia College Seattle Open Textbook Adoption Workshop.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
HTML III ECT 270 Robin Burke.
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5 8th Edition
Inserting and Working with Images
DW Tutorial 5 Sessions 5.1 & 5.2 REVIEW
Chapter 4 Adding Images.
Attributing Images Web.
HTML5 Level II Session II
ITI 133 HTML5 Desktop and Mobile Level I
Chapter 3 Images.
Session I Chapter 10 - How to Work with Tables
ITI 133 HTML5 Desktop and Mobile Level I
HTML5 Level I Session III
Session V - Chapter 9 How to Work with Images
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5 8th Edition
HTML5 Session IV Chapter 7 - How to Work with Links and Lists Chapter 9 - How to Work with Images Master a Skill.
HTML5 Level I Session II Chapter 3 - How to Use HTML to Structure a Web Page
HTML5 Session III Chapter 5 - How to Use the CSS Box Model for Spacing, Borders, and Backgrounds Chapter 6 - How to use CSS for page.
Basics of Web Design Chapter 5 Graphics & Text Styling Basics Key Concepts Copyright © 2018 Terry Ann Morris, Ed.D.
HTML5 Level I Session III
HTML5 Level I Session III
Graphics (Characteristics 1)
Chapter 5 Graphics & Text Styling Basics Key Concepts
Putting An Image on Your Web Page
HTML Level II (CyberAdvantage)
Creating Images for the Web
What IS Creative Commons?
Introduction to HTML- Basics
Web Development & Design Foundations with H T M L 5
How to work with images and icons Murach's HTML and CSS, 4th Edition
ITI 163: Web, Mobile, and Social Media Design Introduction
USING IMAGES This is the bottom of the page. Note the alignment of having text before and after, at the top, in the middle and at the bottom. Code is on.
ITI 134: HTML5 Desktop and Mobile Level II
Hyperlinks, Images, Comments, and More…
Session IV Chapter 15 - How Work with Fonts and Printing
ITI 133: HTML5 Desktop and Mobile Level I
Presentation transcript:

ITI 133 HTML5 Desktop and Mobile Level I Session V - Chapter 9 How to Work with Images www.profburnett.com

Class Outline Exercise 1 - Basic Skills for Working with Images Exercise 2 - Advanced Skills for Working with Images Exercise 3 - Related Skills for Working with Images 11/15/2018 Copyright © Carl M. Burnett

Image Types Joint Pictures Engineering Group (JPEG) Image Photographs Can Be Compressed 30% Compression Graphics Interchange Format (GIF) Image Bitmaps 256 Colors Animation Portable Network Graphics (PNG) Compression Animation Color Depth No License Needed 11/15/2018 Copyright © Carl M. Burnett

Attributes of the <img> tag src – relative or absolute URL alt – alternate text height – height of the image in pixels Width – width of the image in pixels 11/15/2018 Copyright © Carl M. Burnett

CSS properties for sizing an image height - The height property sets the height of an element. (Note: The height property does not include padding, borders, or margins; it sets the height of the area inside the padding, border, and margin of the element!) width - The width property sets the width of an element. (Note: The width property does not include padding, borders, or margins; it sets the width of the area inside the padding, border, and margin of the element!) CSS Syntax: height / width : auto|length|initial|inherit; Auto - The browser calculates the height. This is default Length - Defines the height in px, cm, etc.  % - Defines the height in percent of the containing block Initial - Sets this property to its default value. Inherit - Inherits this property from its parent element. 11/15/2018 Copyright © Carl M. Burnett

The HTML for Two Images CSS <p><img src="images/students.jpg" alt="teacher and students" height="300" width="400">   <img id="small" src="images/students.jpg" alt="teacher and students"></p> CSS #small { height: 150px; width: 200px; } Web Page Example 11/15/2018 Copyright © Carl M. Burnett

The Property for Aligning Images Vertically vertical-align W3C Exercise Common Keywords for the Vertical-Align Property bottom middle top text-bottom text-top 11/15/2018 Copyright © Carl M. Burnett

HTML for Web Page with Three Images <h2>To order now:</h2> <p><img src="images/computer.gif" alt="web address"> <b>Web:</b> www.murach.com</p> <p><img src="images/telephone.gif" alt="phone"> <b>Phone:</b> 1-800-221-5528</p> <p><img src="images/fax.gif" alt="fax"> <b>Fax:</b> 1-559-440-0963</p> CSS img { vertical-align: middle; margin-right: 10px; } Web Page Example 11/15/2018 Copyright © Carl M. Burnett

The Properties for Floating Images clear W3C Exercise 11/15/2018 Copyright © Carl M. Burnett

HTML & CSS for a Web Page Web Page Example <img src="images/students.jpg" alt="teacher and students"> <ul> <li>in college and university MIS programs that focus on providing students with practical, real-world experience</li> <li>by technical institutes and community colleges that focus on the skills that employers are looking for</li> <li>in Continuing Ed and Extension programs where the students are professionals who are expanding their skills</li> </ul> <p id="last">So if your program fits one of those profiles, please take a look at our books. I’m confident you’ll discover a new level of structure, clarity, and relevance that will benefit both you and your students.</p> img { float: left; margin-top: 15px; margin-bottom: 10px; } #last { clear: left; } Web Page Example 11/15/2018 Copyright © Carl M. Burnett

A Web Page with Figure and Figcaption Elements 11/15/2018 Copyright © Carl M. Burnett

The HTML for the Figure and Figcaption Elements <article> <h1>Fossil Threads in the Web of Life</h1> <figure> <img src="images/sampson_dinosaur.jpg" alt="Scott Sampson"> <figcaption>Scott Sampson and friend</figcaption> </figure> <p>What's 75 million years old and brand spanking ... </p> </article> 11/15/2018 Copyright © Carl M. Burnett

The CSS for the Figure and Figcaption Elements float: left; margin-right: 1.5em; } figcaption { display: block; font-weight: bold; padding-top: .25em; margin-bottom: 1em; border-bottom: 1px solid black; } Web Page Example 11/15/2018 Copyright © Carl M. Burnett

Thumbnails in a Web Page Web Page Example 11/15/2018 Copyright © Carl M. Burnett

Photo displayed when fifth thumbnail is clicked 11/15/2018 Copyright © Carl M. Burnett

The HTML for the Thumbnails <h3>Ram Tap Combined Test</h3> <p> <a href="p1.html"><img src="thumbnails/t1.jpg" alt="Photo 1"></a> <a href="p2.html"><img src="thumbnails/t2.jpg" alt="Photo 2"></a> <a href="p3.html"><img src="thumbnails/t3.jpg" alt="Photo 3"></a> <a href="p4.html"><img src="thumbnails/t4.jpg" alt="Photo 4"></a> <a href="p5.html"><img src="thumbnails/t5.jpg" alt="Photo 5"></a> <a href="p6.html"><img src="thumbnails/t6.jpg" alt="Photo 6"></a> </p> 11/15/2018 Copyright © Carl M. Burnett

An image that’s been rolled over 11/15/2018 Copyright © Carl M. Burnett

The CSS for the image rollover The HTML for the page The CSS for the image rollover <body> <h1>Ram Tap Combined Test</h1> <p id="image1"></p> </body> #image1 { background-image: url("h1.jpg"); width: 434px; height: 312px; } #image1:hover { background-image: url("h2.jpg"); 11/15/2018 Copyright © Carl M. Burnett

Attribute of the img element that identifies a map element usemap Attribute of the map element that gives it a name name Attributes of the area elements of an image map href shape coords alt 11/15/2018 Copyright © Carl M. Burnett

An image with hotspots created by an image map 11/15/2018 Copyright © Carl M. Burnett

The HTML for the Image and Image Map <img src="images/html.gif" alt="HTML and JavaScript books" usemap="#books"> <map name="books"> <area href="html5.html" alt="HTML5 book" title="HTML5" shape="poly" coords="1,19,114,0,122,53,106,143,26,158,24,149"> <area href="javascript.html" alt="JavaScript book" title="JavaScript" shape="poly" coords="128,21,241,42,218,178,103,159"> </map> 11/15/2018 Copyright © Carl M. Burnett

Related Skills for Working with Images 11/15/2018 Copyright © Carl M. Burnett

An image editor as it is used to size an image 11/15/2018 Copyright © Carl M. Burnett

Popular Image Editing Software Corel PaintShop Pro X6 Adobe Photoshop Inkscape GIMP MAC Adobe Fireworks Pixelmator 11/15/2018 Copyright © Carl M. Burnett

Creative Commons Licenses Symbol Description Attribution CC BY lets others distribute, remix, tweak, and build upon your work, even commercially, as long as they credit you for the original creation. Attribution-ShareAlike CC BY-SA lets others remix, tweak, and build upon your work even for commercial purposes, as long as they credit you and license their new creations under the identical terms Attribution-NoDerivs CC BY-ND allows for redistribution, commercial and non-commercial, as long as it is passed along unchanged and in whole, with credit to you. Attribution-NonCommercial CC BY-NC lets others remix, tweak, and build upon your work non-commercially, and although their new works must also acknowledge you and be non-commercial, they don’t have to license their derivative works on the same terms. Attribution-NonCommercial-ShareAlike CC BY-NC-SA lets others remix, tweak, and build upon your work non-commercially, as long as they credit you and license their new creations under the identical terms. Attribution-NonCommercial-NoDerivs CC BY-NC-ND most restrictive of our six main licenses, only allowing others to download your works and share them with others as long as they credit you, but they can’t change them in any way or use them commercially. 11/15/2018 Copyright © Carl M. Burnett

30 Best Websites To Download Free Stock Photos Free Photo Websites 30 Best Websites To Download Free Stock Photos 11/15/2018 Copyright © Carl M. Burnett

A Web Page with Favicons The link element that links to the favicon <link rel="shortcut icon" href="images/favicon.ico"> 11/15/2018 Copyright © Carl M. Burnett

Popular programs and tools for creating favicons Favicon ICO Generator Axialis Icon Workshop Photoshop plug-in Favicon from Pics 11/15/2018 Copyright © Carl M. Burnett

Student Exercise 1 Complete Exercise 9-1 on page 346 using Dreamweaver The Town_Hall folder in the book in Exercise 9 is the root directory on your development site. Upload your HTML pages and CSS files to the live site to preview. 11/15/2018 Copyright © Carl M. Burnett

Class Review Basic Skills for Working with Images Advanced Skills for Working with Images Related Skills for Working with Images Student Exercise 1 11/15/2018 Copyright © Carl M. Burnett