CIS 1310 – HTML & CSS 4 Visual Elements and Graphics.

Slides:



Advertisements
Similar presentations
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Advertisements

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 Color and Background Controls Border and Margin Controls (Boxes)
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
Tutorial 4: Creating page layout with css
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.
CSS: Class 1 Background Images, Controlling Position of Background Images, Add Padding to Page Elements, Add Borders to Elements on a Page.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 6 - Cascading Style Sheets™ (CSS) Outline 6.1 Introduction 6.2 Inline Styles 6.3 Embedded Style.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
CSS Color & Text Cascading Style Sheets. Advantages of CSS Typography and page layout can be better controlled Style is separate from structure Documents.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
Tutorial 3 Working with Cascading Style Sheets. XP Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external.
Lecture CSS: Cascading Style Sheets. What are Styles? Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Cascading Style Sheets 1 Color and Backgrounds. Cascading Style Sheets 2 Color and Backgrounds Computer color basics Expression of color values using.
Web Development & Design Foundations with HTML5
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Dvijesh Bhatt.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
CSS Typography, Fonts, Spacing, Borders, Backgrounds, Opacity
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Cascading Style Sheets CSS. CSS - Structure Declaration block Property: identifies what to change Value: how to change it Selector – example h1{ font-size:
INTRODUCTION TO HTML5 Styling with CSS3. Round Border Corners  You can modify any element that supports the border property and render rounded borders.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorials 3 & 4: Working With CSS.
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.
CSS Border.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION 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.
CHAPTER 3 CSS & CSS3 อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
COMP213 – Web Interface Design
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
Chcslonline.org Text –wrapping around Images. chcslonline.org To wrap text around an image, lets set up a style in our style sheet. open a new notepad.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
Cascading Style Sheets Chapters 5-6 Color and Background Controls Border and Margin Controls.
>> The “Box” Model. Pre-requisite Create a new project in Netbeans called Week5 Create a new html file and name it box.html Create a new css file and.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 6 - Cascading Style Sheets™ (CSS) Outline 6.1 Introduction 6.2 Inline Styles 6.3 Embedded Style.
 Cascading Style Sheets (CSS) ◦ Used to specify the presentation of elements separately from the structure of the document.  Inline style ◦ declare.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 14: Enhancements and Effects with CSS3.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
1 CS428 Web Engineering Lecture 08 Border, Margin, Padding … (CSS - III)
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
3.2 Cascading Style Sheets. 2 Positioning Elements Normally, elements are laid out on the page in the order that they are defined in the XHTML document.
Tutorial 4 Creating Page Layouts with CSS
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Doncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer
Web Design (15) CSS Opacity, Link Colours & Background Images.
CIS234A Lecture 6 Instructor Greg D’Andrea. Span and Div The span and div elements are a generic means by which we can add structure to documents. The.
Tutorial #5 Working with the Box Model. Tutorial #4 Review - CSS Create a homework page Final Project Discussion Exam on Blackboard Styling Lists (List-style-type,
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
Chapter 7.  Change body and link styles  Create a drop-down menu  Change color and font styles in the menu  Create a pop-up effect using CSS  Utilize.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with HTML5 8th Edition
Inserting and Working with Images
Web Development & Design Foundations with HTML5 8th Edition
>> The “Box” Model
Chapter 6 More CSS Basics Key Concepts
Web Development & Design Foundations with HTML5 7th Edition
Cascading Style Sheets
Web Development & Design Foundations with HTML5 8th Edition
4 Visual Elements and Graphics.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Box model, spacing, borders, backgrounds
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Web Development & Design Foundations with H T M L 5
How to use the CSS box model for spacing, borders, and backgrounds
Presentation transcript:

CIS 1310 – HTML & CSS 4 Visual Elements and Graphics

CIS 1310 – HTML & CSS Learning Outcomes  Create & Format Lines & Borders on Web Pages  Add Graphics to Web Pages  Configure Images as Backgrounds & Hyperlinks  Configure Visual Effects with CSS3  Configure RGBA color with CSS3  Use HTML5 Elements to Caption a Figure  Use the HTML5 Meter & Progress Elements  Follow Web Design Guidelines for Graphics

CIS 1310 – HTML & CSS <hr>  Inserts Plain Line (Horizontal Rule) Across Page Emphasize Divisions & Transitions In Content  Style style=“background-color: #RRGGBB | colorname;” style=“color: #RRGGBB | colorname;” style=“height: number;” style=“width: number;”

CIS 1310 – HTML & CSS Border Properties  border: style width color Shorthand Property Sets All Four Individual Borders Same Format for margin Property

CIS 1310 – HTML & CSS Border Properties  border-style: keyword Keywords none dotted dashed solid double groove ridge inset outset

CIS 1310 – HTML & CSS Border Properties  border-width: thin | medium | thick | #  border-color: value

CIS 1310 – HTML & CSS Border Properties  border-width: thin | medium | thick | #  border-color: value  border-radius: value Configues Rounded Corners for an Element

CIS 1310 – HTML & CSS Padding Properties  White Space Between Content & Border  padding: # | % Shorthand Property Sets All Four Individual Paddings  padding-left | padding-right | padding-top | padding-bottom: # | %

CIS 1310 – HTML & CSS Images  Formats GIF Better for Clip Art Displays Maximum of 256 Colors Interlaced Image that Comes into Focus While it is Being Displayed Non-interlaced Rendering the Image a Line at a Time Transparency One Color Selected to Not Display Animated Composed of Several Different Images Displayed in Rapid Succession

CIS 1310 – HTML & CSS Images  Formats PNG Better for Clip Art Displays More Colors than GIF Allows Transparency Does Not Allow Animation

CIS 1310 – HTML & CSS Images  Formats JPEG Better for Photographs Unlimited Colors Generally Smaller File Size Control Amount of Compression

CIS 1310 – HTML & CSS Images  Formats SVG Scalable Made Up of Lines, Not Dots Created with XML and Can Be Modified by CSS Easily Edited

CIS 1310 – HTML & CSS <img>  Inserts an Image Into a Document Secondary to Content  Attributes alt=“text” Provides Alternative Text that Describes the Image IE Displays ALT Text When User Hovers on Image Users Who Surf With Graphics Turned Off Non-graphical Browsers Alt Text is Displayed in Place of Image Required

CIS 1310 – HTML & CSS <img>  Attributes height=“pixels” Specifies the Image's Height src=“URL” Specifies Location of Image to Place in Web Page Required width=“pixels” Specifies the Image's Width

CIS 1310 – HTML & CSS <img>  Style style=“float: none | left | right;” Place Image on Left / Right & Wrap Text Around It style=“clear: none | left | right;” Display Content After Margin is Clear of Floating Elements style=“margin: top# right# bottom# left#;” style=“border-width: #;” Rendered in Designated Link Color if Image is a Link

CIS 1310 – HTML & CSS Image Maps  Image Map An Image that has Multiple Areas Defined as Links  Hotspot An Area in an Image That is Defined as a Link  Example

CIS 1310 – HTML & CSS Image Maps  Requirements id Attribute for alt Attribute for

CIS 1310 – HTML & CSS & &  … Contains a Self-contained Unit of Content (e.g., image) Along with One Optional figcaption Element  Example <img src="lighthouseisland.jpg" width="250“ height="355" alt="Lighthouse Island“ /> Island Lighthouse, Built in 1870

CIS 1310 – HTML & CSS <meter>  … Displays a Gauge of a Numeric Value Within a Range  Example ,417 Total Visits ,000 Firefox ,800 Internet Explorer ,062 Chrome ,043 Safari Opera other

CIS 1310 – HTML & CSS <progress>  … Displays a Bar of a Numeric Value Within a Range  Example 5000 Progress Towards Our Goal

CIS 1310 – HTML & CSS Background Properties  background-color: colorname | #  background-image: url(imagename.gif)

CIS 1310 – HTML & CSS Background Properties  background-repeat: repeat | repeat-x | repeat-y | no-repeat  background-position: % | length | keyword

CIS 1310 – HTML & CSS Background Properties  background-attachment: scroll | fixed

CIS 1310 – HTML & CSS Background Properties  background-clip: content-box | padding-box | border-box Confines Display of Background Image  background-origin: content-box | padding-box | border-box Displays Background Image Relative to Value  background-size: % | # | cover | contain Resize or Scale Background Image

CIS 1310 – HTML & CSS Multiple Background Images  Example #exampleA { width: 500px; height: 250px; background-image: url(decoration.png), url(ribbon.png), url(old_paper.jpg); background-repeat: no-repeat; background-position: left top, right bottom, left top; }

CIS 1310 – HTML & CSS Favicon (Favorites Icon)  Square Image Associated with a Web Page  Named favicon.ico  Displayed in Address Bar, Tab, Favorites/Bookmarks  Example

CIS 1310 – HTML & CSS Box Shadows  box-shadow Property Specify Horizontal Offset, Vertical Offset, Blur Radius, & Color  Example #wrapper { box-shadow: 5px 5px 5px #828282; }

CIS 1310 – HTML & CSS Opacity  opacity Property Configure the Opacity of the Background Color 0 = Completely Transparent; 1 = Completely Opaque  Example h1{ background-color: #FFFFFF; opacity: 0.6; }

CIS 1310 – HTML & CSS RGBA Color  rgba Property Red, Green, Blue, Alpha (Transparency) Values for Red, Green, & Blue Must Be From 0 To 255 Alpha Value 0 = Transparent & 1 = Opaque  Example h1{ color: rgba(255, 255, 255, 0.7); font-size: 5em; padding-right: 10px; text-align: right; font-family: Verdana, Helvetica, sans-serif; }

CIS 1310 – HTML & CSS HSLA Color  hsla Property Hue, Saturation, Lightness, Alpha (Transparency) Hue - Actual Color from 0 to 360 (Circle) Red = 0; Green = 120; Blue = 240 Saturation – Intensity from 0% to 100% Lightness - Brightness from 0% to 100% Alpha Value 0 = Transparent & 1 = Opaque  Example h1{ color: hsla(120, 100%, 100%, 1.0); }

CIS 1310 – HTML & CSS Gradients  linear-gradient & radial-gradient Properties  Example #linearBg1 { /* top-bottom */ background: linear-gradient(#000, #400, #800, #c00, #f00); } #linearBg2 { /* left-right */ background: linear-gradient(to right, #000, #500, #a00, #f00); } #linearBg3 { /* diagonal top left-bottom right */ background: linear-gradient(to bottom right, #000, #800, #f00); }