HTML Boot Camp: Rules and Images

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Five Working with Images.
Advertisements

Working with Images and HTML
Iframes & Images Using HTML.
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.
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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Choosing an Image Format Image Sizes Bits Per Pixel Graphic Tips Image Tag Attributes Line.
Images & Tables. Three graphic file types are supported by today's browsers: GIF - Graphic Interchange Format JPEG - Joint Photographic Experts Group.
Tutorial 3 Designing a Web Page.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
Instructor: A. Burns 1 HTML Images. Instructor: A. Burns 2 Inserting a Graphic Images can be displayed in two ways: as inline images or as external 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.
Creating the pages Part Five Graphics. File Format Basics You can currently use only three image file formats on the Web: GIF, JPG, and PNG. A new format,
Images. Image File Formats All browsers support All browsers support –GIF (Graphic Interchange Format)  limited to 256 colors  lossless compression.
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.
Chapter 14-Designing for the World Wide Web. Overview Introducing multimedia on the Web. Designing text for the Web. Creating images for the Web. Adding.
1 Creating Web Graphics Outline 2.1 Graphics Types 2.2 Vector Graphics 2.3Bitmapped Graphics 2.4Graphics for the Web 2.5 GIF (Graphics Interchange Format)
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
Colors, Images, & Image Maps. Working with Color Colors are defined in terms of RGB Triplet –Red, Green, Blue –0 to 255 in intensity –(00, 00, 00) is.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements © 2007 Prosoft Learning Corporation All rights.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
XHTML Images. Images are important Purpose: to enhance your web site. Add only when they complement or add additional impact to your message.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Graphics.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
CIT 256 Dreamweaver Intro. Dr. Beryl Hoffman. Start Dreamweaver Start from Start Menu/Adobe Master Collection CS6/ Adobe Dreamweaver CS6 Choose Create.
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) –
Images in web pages. Images Why do we use images? They add interest, and keep the user from being bored They convey information –Charts are easier to.
Lists, Images, Tables and Links. Lists Unordered List The first item The second item The third item The fourth item Ordered List 1.The first item 2.The.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
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.
1 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
8 Using Web Graphics Section 8.1 Identify types of graphics Identify and compare graphic formats Describe compression schemes Section 8.2 Identify image.
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.
Lecture 16 Image Document Formats. Bitmap vs. Vector Images Bitmaps do not generally.
Macromedia Dreamweaver MX 2004 Design Professional And Graphics WORKING WITH TEXT.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
COS 125 Day 4. Agenda Assignment 1 Due Assignment 2 Posted –Due Feb 9:35 AM Today we will look at creating and using images Examples –
Internet Applications Development Lecture 4 L. Obead Alhadreti.
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.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
Kevin Murphy Images and Web Pages Masters Project CS 490.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
Inserting and Working with Images
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Basics of Web Design Chapter 5 Graphics & Text Styling Basics Key Concepts Copyright © 2018 Terry Ann Morris, Ed.D.
Graphics (Characteristics 1)
Chapter 5 Graphics & Text Styling Basics Key Concepts
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Attribute of heading, <p> and <hr> tag
Presentation transcript:

HTML Boot Camp: Rules and Images 4/22/2017 HTML Boot Camp Chapter 5 Rules and Images Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 The <hr> Tag Description: Inserts a horizontal rule. HTML Syntax: <hr> XHTML Syntax: <hr /> Chapter 05 > Hr Tag Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 The <hr> Tag Syntax: <hr attribute="value"> Attribute Value align left, right, center size Rule thickness (e.g. 5px) width Rule length (e.g. 25%) noshade 2D non-shaded rule Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 Image Formats Only a few image formats are supported on the web: GIF (Graphics Interchange Format) JPEG (Joint Photographic Experts Group) PNG (Portable Network Graphics) SVG (Scalable Vector Graphics) Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 GIF Format Advantages Graphics Interchange Format (GIF) Advantages: Compatible with most browsers Compression is “lossless” Supports interlacing Supports transparency (GIF89a) Supports animation (GIF89a) Introduction to Web Programming

GIF Format Disadvantages HTML Boot Camp: Rules and Images 4/22/2017 GIF Format Disadvantages Graphics Interchange Format (GIF) Disadvantages: Supports maximum of 256 colors (8-bit) Uses patented compression technology Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 PNG Format Advantages Portable Network Graphics (PNG) History: In 1993 Unisys decided to enforce patent on compression technology and collect royalties. Working group lead by Thomas Boutell developed PNG as an open alternative. Introduction to Web Programming

JPEG Format Advantages HTML Boot Camp: Rules and Images 4/22/2017 JPEG Format Advantages Joint Expert Group (JPEG) Advantages: Non-proprietary format 16 million colors (24-bit) Compression can be specified Recommended use: Photographs Introduction to Web Programming

JPEG Format Disadvantages HTML Boot Camp: Rules and Images 4/22/2017 JPEG Format Disadvantages Joint Expert Group (JPEG) Disadvantages: Does not support transparency Compression is “lossy” Does not support animation Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 PNG Format Advantages Portable Network Graphics (PNG) Advantages: Non-proprietary format 16 million colors (24-bit) Compression is “lossless” Supports 2D interlacing Supports transparency Introduction to Web Programming

PNG Format Disadvantages HTML Boot Camp: Rules and Images 4/22/2017 PNG Format Disadvantages Portable Network Graphics (PNG) Disadvantages: Does not support animation Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 The <img> Tag Description: Displays an image HTML Syntax: <img src="image.png"> XHTML Syntax: <img src="image.png" /> <img src="image.png"></img> Chapter 05 > Img Tag Introduction to Web Programming

<img> Tag Attributes HTML Boot Camp: Rules and Images 4/22/2017 <img> Tag Attributes Common Attributes: Attributes Description alt Used when images are disabled or unavailable. Also used by screen reader (accessibility) title Displayed as popup text upon hover align Controls how image is positioned in relation to text (left, right, center) (not HTML5) Introduction to Web Programming

<img> Tag Attributes HTML Boot Camp: Rules and Images 4/22/2017 <img> Tag Attributes Common Attributes: Attributes Description border Renders margin around image width Sets the image width height Sets the image height align Controls how the image is positioned in relation to text (left, right, center) (not HTML5) src URL of image Introduction to Web Programming

Improving Image Display HTML Boot Camp: Rules and Images 4/22/2017 Improving Image Display The images on your page will often be the single most network-bandwidth hog. There are several things you can do to speed up the display of images. Reuse images (especially icons) Divide large documents into smaller pages Link large a image via a thumbnail Specify the image height and width Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 The <svg> Tag Your first SVG image: <svg height="200" width="200"> <circle cx="100" cy="100" r="80" stroke="black" stroke-width="4" fill="red" /> You should see a red circle. No SVG support in browser. </svg> Chapter 05 > Svg Tag Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 SVG Advantages SVG format has some advantages over traditional raster formats: Scalable: Can be scaled to any resolution without degradation of quality because it is a vector format. Smaller: Smaller file size mean faster download time. Scripting: The capability for dynamic and animated images exist. Interactive: Images can be “clickable”. Text Format: SVG language is written in plain text. Introduction to Web Programming

HTML Boot Camp: Rules and Images 4/22/2017 More SVG Advantages Other SVG format advantages include: Styling: SVG files can be changed with CSS (e.g. font, color, etc.) Selectable Text: Text in image can be selected, copied, and pasted. Searchable Text: Text content can be searched and displayed in multiple languages. Accessible: Screen reader can process text for disabled or sight impaired users. Open Standard: SVG standard is an open format being developed by multiple industries in the consortium. Introduction to Web Programming

<body> “bgcolor” Attributes HTML Boot Camp: Rules and Images 4/22/2017 <body> “bgcolor” Attributes Description: Sets the background color of the document (not HTML5). Example: <body bgcolor="lemonchiffon" text="blue"> ... </body> Chapter 05 > bgcolor Attribute Introduction to Web Programming

<body> “background” Attributes HTML Boot Camp: Rules and Images 4/22/2017 <body> “background” Attributes Description: Specifies a background image (not HTML5). Example: <body background="images/brick.png"> ... </body> Chapter 05 > background Attribute Chapter 05 > background Horiz Ramp Chapter 05 > background Vert Ramp Introduction to Web Programming

<body> “link” Attributes HTML Boot Camp: Rules and Images 4/22/2017 <body> “link” Attributes Description: The link attributes control the colors of links (not HTML5). link: a link not yet visited vlink: a link already visited alink: an active link (e.g. link selected by user when mouse is pressed Example: <body link="red" vlink="magenta" alink="green"> Introduction to Web Programming