Chapter 5 Graphics & Text Styling Basics Key Concepts

Slides:



Advertisements
Similar presentations
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.
Advertisements

1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Very quick intro HTML and CSS. Sample html A Web Title.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering 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.
Web Design, 4 th Edition 5 Typography and Images.
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
Web Design, 5 th Edition 5 Typography and Images.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Boot Camp: Rules and Images
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) –
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
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 © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
© 2011 Delmar, Cengage Learning Chapter 4 Adding Images.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
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 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
CSS.
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5 8th Edition
Inserting and Working with Images
2.01 Understand Digital Raster Graphics
Web Development & Design Foundations with HTML5 8th Edition
Chapter 4 Adding Images.
Web Development & Design Foundations with HTML5 8th Edition
Chapter 3 Images.
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5 8th Edition
4 Visual Elements and Graphics.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 5 Graphics & Text Styling Basics Key Concepts Copyright © 2018 Terry Ann Morris, Ed.D.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
2.01 Understand Digital Raster Graphics
Cascading Style Sheets Color and Font Properties
Web Development & Design Foundations with H T M L 5
DREAMWEAVER MX 2004 Chapter 4 Working with Images
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Creating Images for the Web
Web Development & Design Foundations with H T M L 5
2.01 Understand Digital Raster Graphics
Chapter 7 Web Typography
Session IV Chapter 15 - How Work with Fonts and Printing
Presentation transcript:

Chapter 5 Graphics & Text Styling Basics Key Concepts Basics of Web Design Chapter 5 Graphics & Text Styling Basics Key Concepts

Learning Outcomes Describe types of graphics used on the Web Apply the image element to add graphics to web pages Configure images as backgrounds on web pages Configure images as hyperlinks Configure multiple background images with CSS3 Configure text typeface, size, weight, and style with CSS Align and indent text with CSS Configure list markers with CSS Configure an image map Copyright © 2018 Terry Ann Morris, Ed. D.

Graphic types commonly sed on web pages: Types of Graphics Graphic types commonly sed on web pages: GIF JPG PNG Copyright © 2018 Terry Ann Morris, Ed. D.

GIF Graphics Interchange Format Best used for line art and logos Background color – no transparency Background color configured to be transparent Graphics Interchange Format Best used for line art and logos Maximum of 256 colors One color can be configured as transparent Can be animated Uses lossless compression Can be interlaced Copyright © 2018 Terry Ann Morris, Ed. D.

JPEG Joint Photographic Experts Group Best used for photographs Up to 16.7 million colors Use lossy compression Cannot be animated Cannot be made transparent Progressive JPEG – similar to interlaced display Copyright © 2018 Terry Ann Morris, Ed. D.

PNG Portable Network Graphic Support millions of colors Support multiple levels of transparency (but browsers do not -- so limit to one transparent color for Web display) Support interlacing Use lossless compression Combines the best of GIF & JPEG Browser support is growing Copyright © 2018 Terry Ann Morris, Ed. D.

Web Graphics .gif Lossless Yes 256 Inter-lacing .jpg or .jpeg Lossy No Image Type File Extension Com-pression Trans-parency Animation Colors Progressive Display Graphic Interchange Format (GIF) .gif Lossless Yes 256 Inter-lacing Joint Photographic Experts Group (JPEG) .jpg or .jpeg Lossy No Millions Progressive Portable Network Graphic (PNG) .png Yes (multiple levels) Copyright © 2018 Terry Ann Morris, Ed. D.

How do we use camera images? Image Optimization The process of creating an image with the lowest file size that still renders a good quality image— balancing image quality and file size. Photographs taken with digital cameras are not usually optimized for the Web Use a graphics application to: Reduce image dimensions Reduce size of the image file How do we use camera images? Copyright © 2018 Terry Ann Morris, Ed. D.

Optimize An Image for the Web Image Optimization Reduce the file size of the image Reduce the dimensions of the image to the actual width and height of the image on the web page. Image Editing Tools: GIMP (free!) Adobe Fireworks Adobe Photoshop http://pixlr.com/editor (free!) Copyright © 2018 Terry Ann Morris, Ed. D.

Choosing Names for Image Files Use all lowercase letters Do not use punctuation symbols and spaces Do not change the file extensions (should be .gif, .jpg, .jpeg, or .png) Keep your file names short but descriptive i1.gif is probably too short myimagewithmydogonmybirthday.gif is too long dogbday.gif may be just about right Copyright © 2018 Terry Ann Morris, Ed. D.

The Image Element <img> Configures graphics on a web page src Attribute File name of the graphic alt Attribute Configures alternate text content (description) height Attribute Height of the graphic in pixels width Attribute Width of the graphic in pixels <img src="cake.gif" alt="birthday cake" height="100" width="100"> Copyright © 2018 Terry Ann Morris, Ed. D.

Accessibility & Images Required: Configure the alt attribute Alternate text content to convey the meaning/intent of the image If the image contains a text message, then the text should typically be the value of the alt attribute NOT the file name of the image Use alt=“” for purely decorative images Recommended: If your site navigation uses image links for the main navigation, provide simple text links at the bottom of the page. Copyright © 2018 Terry Ann Morris, Ed. D.

Image Links To create an image link use an anchor element to contain an image element Browsers automatically add a border to image links. Configure CSS to eliminate the border img {border-style: none; } <a href="index.html"><img src="home.gif" height="19" width="85" alt="Home"></a> Home Copyright © 2018 Terry Ann Morris, Ed. D.

Thumbnail Image A small image configured to link to a larger version of that image. <a href="large.jpg"><img src="small.jpg" alt=“ocean view of island” width="200" height="100"></a> Copyright © 2018 Terry Ann Morris, Ed. D.

CSS background-image Property Configures a background-image By default, background images tile (repeat) body { background-image: url(background1.gif); } Copyright © 2018 Terry Ann Morris, Ed. D.

CSS background-repeat Property Copyright © 2018 Terry Ann Morris, Ed. D.

Using background-repeat trilliumbullet.gif: h2 { background-color: #d5edb3; color: #5c743d; padding-left: 30px; background-image: url(trilliumbullet.gif); background-repeat: no-repeat; } Copyright © 2018 Terry Ann Morris, Ed. D.

CSS3 Multiple Background Images body { background-color: #f4ffe4; color: #333333; background-image: url(trilliumgradient.png); background: url(trilliumfoot.gif) no-repeat bottom right, url(trilliumgradient.png); } Copyright © 2018 Terry Ann Morris, Ed. D.

Configure Typeface with CSS font-family property Configures the font typeface of the text Include a generic family name p { font-family: Verdana, Arial, sans-serif; } Copyright © 2018 Terry Ann Morris, Ed. D.

The font-size Property Configures the size of text p { font-size: 90%; } Copyright © 2018 Terry Ann Morris, Ed. D.

Align and Indent Text with CSS text-align property Configures the alignment of text text-indent property Configures the indentation of the first line of text in an element h1 { text-align: center; } p { text-indent: 5em; } Copyright © 2018 Terry Ann Morris, Ed. D.

More CSS Text Properties font-weight property Configures the boldness of text font-style property Configures the style of the text line-height property Modifies the height of a line of text text-decoration property Modifies the display of text Typically used to remove the default underline from hyperlinks text-transform property Configures the capitalization of text letter-spacing property Configures the space between text characters li {font-weight: bold; } #special { font-style: italic; } p { line-height: 120%; } a { text-decoration: none; } h3{ text-transform: uppercase; } h1 { letter-spacing: 3px; } Copyright © 2018 Terry Ann Morris, Ed. D.

Configure List Markers with CSS CSS Properties list-style-type list-style-image list-style position Example: ul {list-style-image: url(trillium.gif); } Copyright © 2018 Terry Ann Morris, Ed. D.

Favorites Icon Small icon that displays in the address bar or tab bar of some browsers Also called a favicon <link rel="icon" href="favicon.ico" type="image/x-icon"> Copyright © 2018 Terry Ann Morris, Ed. D.

Image Map map element area element Defines the map Defines a specific area on a map Can be set to a rectangle, circle, or polygon href Attibute shape Attribute coords Attribute <map name="boat" id="boat"> <area href="http://www.doorcountyvacations.com" shape="rect" coords="24, 188, 339, 283" alt="Door County Fishing"> </map> <img src="fishingboat.jpg" usemap="#boat" alt="Door County“ width="416" height="350"> Copyright © 2018 Terry Ann Morris, Ed. D.

Summary This chapter introduced the HTML techniques and technologies used to place images and configure text on web pages. Issues related to accessibility and images were also discussed. The number one reason for visitors to leave web pages is too long of a download time. When using images, be careful to minimize this issue. Copyright © 2018 Terry Ann Morris, Ed. D.