Images & Tables. Three graphic file types are supported by today's browsers: GIF - Graphic Interchange Format JPEG - Joint Photographic Experts Group.

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Advertisements

Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Chapter 3 – Web Design Tables & Page Layout
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.
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
1 HTML Tables. 2 Tables Tables can be a great help in overcoming HTML's vertical orientation. Even the most complex tables use just the following three.
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.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Using HTML Tables.
Instructor: A. Burns 1 HTML Tables. Instructor: A. Burns 2 Tables Tables can be a great help in overcoming HTML's vertical orientation. Even the most.
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
Notes Ch. 12—Creating Tables Web Page Design. Why Use Tables? Tables are used to create a variety of items such as calendars, charts, and spreadsheets.
Using HTML to Create Tables in Web pages Connie Lindsey November 2005.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
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.
XP 1 Tutorial 4 Designing a Web Page with Tables.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 5: Working with Tables.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
Adding Images & Working with Images Unit 2. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date:08/10/2009 Period : Summary: To display Art To display Photographs.
Unit 4 Lesson 3 HTML Power Techniques Textbook Authors: Knowlton, Barksdale, Turner, & Collings PowerPoint Lecture by Mr. Clausen.
Tables Learning Web Design: Chapter 8. Overview of Tables Uses for tables How to create a table Using CSS to style a table Nested tables Advanced table.
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.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Graphics.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Understanding HTML Code
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) –
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.
1 Basic HTML. 2 Part 1: Basic Web Page Production.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
1.NET Web Forms HTML Introduction © 2002 by Jerry Post.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
1 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
HTML tags Some popular ones. Paragraph: separated by a single line of white space Line break NOTE: no end tag is used for this tag Headlines ( through.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
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.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
WWW, Web Design, Multimedia Winny Wang Image Types.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
Using Tables for Layout INP150 Session #8. Layout Map out your page Design with paper and pencil Determine number of rows and columns you need Determine.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
REEM ALMOTIRI Information Technology Department Majmaah University.
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
>> HTML: Tables.
Inserting and Working with Images
Tables and Frames.
LAB Work 02 MBA 61062: E-Commerce
Web Development & Design Foundations with HTML5 7th Edition
Using HTML Tables SWBAT: - create tables using HTML
Basic HTML.
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Presentation transcript:

Images & Tables

Three graphic file types are supported by today's browsers: GIF - Graphic Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics Image file formats

GIF GIF files are best used for images that have broad areas of flat color and are highly defined. Supports transparency and animation Supports a maximum of 256 colors. Guidelines to keep GIF files small: Reduce the number of colors Crop out extra space if possible

GIF

Problem?

JPEG Solution

JPG JPEG files are best used for images that require many colors such as photographs. JPEG has a higher compression ratio but it is a "lossy" compression (compression sacrifices some image data in reducing file size).

PNG PNG was developed as an alternative to GIF Does not yet have broad-based browser or image editor support. Has a lot of the same features as GIF PNG also automatically adjusts graphics for gamma correction to compensate for cross- platform differences in brightness and contrast. Does not support animation

Inserting images on your pages: Image tag We usually put images in a separate folder on the web server. The image file has a 644 permission Example: The source attribute (src) refers to the name and location of the image file relatively to the HTML file itself.

Image tag attributes height: specifies the height of the image. width: specifies the width of the image. border: determines the size of the border. alt: specifies the text displayed on-screen when the cursor is rolled over the image. Always use this! align: puts the image to the right or left of the screen. valign: align text associated with the image at the top, middle, or bottom wrt the image.

Aligning Images To align an image left: Using CSS (the tag): img {float: left} Both of these will cause text to appear to the right of the image and wrap around it.

Aligning Images NOTE: Most browsers do not support To align an image center:

Image Borders Line that appears around a picture (like a frame). Will appear automatically when you use an image as a link. Where # is between 0 and 99

Linking from an Image Place the tag inside the anchor tag.

Some images This pic caption shows up at the bottom <img src = “Images/flowers.jpg " width=“100” height=“50” alt=“Flowers” align=“right” border=“3”> Hyperlinked picture: Example Caption for an image Affect image size Add border

Image as page background sets the background image. Using the new standard (within tag): body {background-image: url(../jpg/bgd/stucco1.jpg)} Image Size: A large image may only appear once (depending on the size of the browser window) Smaller images will be tiled as many times as necessary to fill a page.

HTML and Colors Colors in HTML documents are represented by a triplet of numbers, called an RGB triplet, based on their Red, Green, and Blue component.Ex: RED = (255,0,0) HTML requires that the color values be entered as 3 two-digits hexadecimal numbers. Ex: RED = FF0000 digit1 digit2 digit3 digit4 digit5 digit6 red green blue There are many online charts and references for color. Or just click on Color Chart from our Important Documents page.

Color as attribute of Body Tag Text color Background color New standard (within tag): body {background-color: Ivory; color: Navy}

Hyperlink has 4 states: link: unvisited links vlink: visited links hover: mouse hover over link alink: a hyperlink that the user is thinking of visiting (the user has moused over and depressed the mouse button on). Hyperlink colors:

More links about Color: HTML Colors: HEX RGB color code converter: Background/Text color selector

Tables

Basic HTML Tables A table organizes data in rows and columns … Enclose the table structure … Table row … Each data cell within a row. The smallest area of a table that can be formated. This controls the number of columns in the table.

Basic table structure A1 A2 A3 B1 B2 B3 A1A2A3 B1B2B3 First row First Column

The HTML for the basic table structure

attributes border="# pixels"> Size of the border around the table cellspacing ="# pixels"> space inserted between cells cellpadding ="# pixels"> size of the gap between the cell text and the cell border align = "left/right"> table is placed on the left/right and text is wrapped around the table "center"> table is placed in the center of the page. Text is not wrapped around the table

More Attributes bordercolor="color"> changes the color of the border. bordercolordark="color"> bordercolorlight="color"> creates a 3D effect for the border.

More attributes frame="box|above|below|void" …> controls which side of the table has borders

More attributes rules="all|rows|cols|none"> controls around which cell the border is drawn.

,, attributes width="pixels" or "%"> table/cell width in pixels or as % of the page/table. height="pixels" or "%"> Same as above. bgcolor="color"> Change the table/cell background color. background=“pic.jpg”> Tiles a picture as a background.

Question Given a table specified with: with the first three cells in the first row coded as: 9 A.M. 12 P.M. What is the width of the last column in the above table?

Cell attributes (, ) colspan="#" this cell spans across # columns. rowspan="#" this cell spans over # rows. align= valign= "left/right"> text in the cell is aligned left/right. "center"> text in the cell is centered. "top/bottom"> text in the cell is aligned top/bottom. "middle"> text in the cell is aligned with the middle of the cell.

Summary - Table Level Attributes <table width="n" pixels or "n%" percentage align="left", "center", "right“ bgcolor="hex value“ border="pixels“ bordercolor="hex value“ cellspacing="pixels“ cellpadding="pixels" >

Summary - Row Level Attributes <tr align="left", "center", "right“ valign="top", "bottom", "middle" bgcolor="hex value” >

Summary - Cell Level Attributes <td align="left", "center", "right“ valign="top", "bottom", "middle“ bgcolor="hex value“ height="n" pixels or "n%" percentage width="n" pixels or "n%" percentage rowspan="n" rows to span colspan="n" columns to span >

Question Here is a table: What additional coding will make it look like this?

Tables are very commonly used for webpage design layout To display content in newspaper-like columns or separates the page in different topical areas. Start with the outer table and work your way in using nested tables. Add background color to visually separate column. Add cell padding to avoid crowding. Use row spanning to vary the starting point of articles.

Example: A progression toward the desired design One Table Adding an Image Nesting Tables