Web Development & Design Foundations with HTML5 7th Edition

Slides:



Advertisements
Similar presentations
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Advertisements

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.
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.
กระบวนวิชา 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.
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
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) –
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.
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 4 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Part 4 Text & Fonts © UNT in partnership with TEA1IT: Web Technologies - HTML Scripting.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS.
Laying out Elements with 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 8th Edition
( Cascading style sheet )
CSS Layouts: Grouping Elements
Inserting and Working with Images
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
HTML Images CS 1150 Spring 2017.
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5
Chapter 3 Images.
Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
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.
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 H T M L 5
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with H T M L 5
HTML Images CS 1150 Fall 2016.
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:

Web Development & Design Foundations with HTML5 7th Edition Chapter 4 Key Concepts Copyright © Terry Felke-Morris

Horizontal Rule Element Configures a horizontal line <hr>

HANDS-ON PRACTICE 4.1 (page 134) chapter4/starter1.html chapter4/hr.html

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 }

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; }

Browser Display Can Vary

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 }

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:

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; }

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; }

CSS padding Property Shorthand: four values 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; }

Hands-On Practice h2 { background-color:#AEAED4; color:#191970; font-family: Georgia, "Times New Roman", serif; text-align: center; border-bottom: 2px dashed #191970; }

HANDS-ON PRACTICE 4.2 (page 138) chapter4/starter1.html chapter4/border.html

Checkpoint 4.1 1. Is it reasonable to try to code a web page that looks exactly the same on every browser and every platform? Explain your answer. 2. When a web page containing the style rules below is rendered in a browser, the border does not display. Describe what is incorrect with the following code: h2 { background-color: #ff0000 border-top: thin solid #000000 } 3. True or False? CSS can be used to configure visual elements such as rectangular shapes and lines on web pages.

Graphic types commonly used on web pages: Types of Graphics Graphic types commonly used on web pages: GIF JPG PNG

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

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

PNG Portable Network Graphic Support millions of colors Support multiple levels of transparency (but most 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

HTML Image Element Configures graphics on a web page src Attribute File name of the graphic alt Attribute Configures alternate text description height Attribute Height of the graphic in pixels width Attribute Width of the graphic in pixels <img src=“dog.jpg” alt=“Dog at computer” height=“100” width=“100”> 19

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.

HANDS-ON PRACTICE 4.3 (page 145) chapter4/starter2.html chapter4/starters chapter4/4.3/index.html