Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.

Slides:



Advertisements
Similar presentations
Working with Images and HTML
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.
Chapter 7 Page Layout Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Tutorial 5 Working with the Box Model. XP Objectives Understand the box model Create padding, margins, and borders Wrap text around an image Float a block-level.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
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
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
HTML Boot Camp: Rules and Images
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 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) –
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
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.
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 (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
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 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Internet Applications Development Lecture 4 L. Obead Alhadreti.
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.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
Kevin Murphy Images and Web Pages Masters Project CS 490.
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.
REEM ALMOTIRI Information Technology Department Majmaah University.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS.
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5
Chapter 6 More CSS Basics Key Concepts
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
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.
CSS Borders and Margins.
Web Development & Design Foundations with H T M L 5
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Chapter 5 Graphics & Text Styling Basics Key Concepts
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with H T M L 5
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Web Development & Design Foundations with HTML5
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Attribute of heading, <p> and <hr> tag
Presentation transcript:

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris

HORIZONTAL RULE ELEMENT  Configures a horizontal line  XHTML Syntax:  HTML5 Syntax: 2

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 4.1  chapter4/starter1.html  chapter4/hr.html 3

Copyright © Terry Felke-Morris CSS BORDER PROPERTY  Configures a border on the top, right, bottom, and left sides of an element  Consists of  border-width  border-style  border-color h2 { border: 2px solid #ff0000 }

Copyright © Terry Felke-Morris CSS BORDERS: BLOCK / INLINE ELEMENTS Block display element ◦ default width of element content extends to browser margin (or specified width) Inline display element ◦ Border closely outlines the element content h2 { border: 2px solid #ff0000; } a { border: 2px solid #ff0000; }

Copyright © Terry Felke-Morris BROWSER DISPLAY CAN VARY

Copyright © Terry Felke-Morris CONFIGURING SPECIFIC SIDES OF A BORDER  Use CSS to configure a line on one or more sides of an element  border-bottom  border-left  border-right  border-top h2 { border-bottom: 2px solid #ff0000 }

Copyright © Terry Felke-Morris CSS PADDING PROPERTY  Configures empty space between the content of the HTML element and the border  Set to 0px by default h2 { border: 2px solid #ff0000; padding: 5px; } No padding property configured:

Copyright © Terry Felke-Morris CONFIGURE PADDING ON SPECIFIC SIDES OF AN ELEMENT  Use CSS to configure padding on one or more sides of an element  padding-bottom  padding-left  padding-right  padding-top h2 { border: 2px solid #ff0000; background-color: #cccccc; padding-left: 5px; padding-bottom: 10px; padding-top: 10px; }

Copyright © Terry Felke-Morris CSS PADDING PROPERTY SHORTHAND: TWO VALUES  Two numeric values or percentages  first value configures top and bottom padding  the second value configures left and right padding h2 { border: 2px solid #ff0000; background-color: #cccccc; padding: 20px 10px; }

Copyright © Terry Felke-Morris Four numeric values or percentages ◦ Configure top, right, bottom, and left padding h2 { border: 2px solid #ff0000; width: 250px; background-color: #cccccc; padding: 30px 10px 5px 20px; } CSS PADDING PROPERTY SHORTHAND: FOUR VALUES

Copyright © Terry Felke-Morris HANDS-ON PRACTICE h1 { background-color:#191970; color:#E6E6FA; padding: 15px; font-family: Georgia, "Times New Roman", serif; } h2 { background-color:#AEAED4; color:#191970; font-family: Georgia, "Times New Roman", serif; border-bottom: 2px dashed #191970; }

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 4.2  chapter4/starter1.html  chapter4/border.html 13

Copyright © Terry Felke-Morris TYPES OF GRAPHICS  Graphic types commonly used on web pages:  GIF  JPG  PNG 14

Copyright © Terry Felke-Morris GIF 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 15 Background color – no transparency Background color configured to be transparent

Copyright © Terry Felke-Morris 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 16

Copyright © Terry Felke-Morris 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 17

Copyright © Terry Felke-Morris HTML IMAGE ELEMENT 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 18

Copyright © Terry Felke-Morris ACCESSIBILITY & IMAGES  Required:  Configure the alt attribute  Alternate text content to convey the meaning/intent of the image  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 © Terry Felke-Morris HANDS-ON PRACTICE 4.3  chapter4/starter2.html  chapter4/starters  chapter4/4.3/index.html 20