Tutorial 3 Designing a Web Page.

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
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.
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
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.
Tutorial 3 – Designing a Web Page Working with Color & Graphics Mrs. Wilson.
Design, Formatting, CSS, & Colors 27 February, 2011.
Designing a Web Page Working with Fonts, Colors, and Graphics.
Math Further HTML and Web design Gavin Shaddick
Images & Tables. Three graphic file types are supported by today's browsers: GIF - Graphic Interchange Format JPEG - Joint Photographic Experts Group.
Dogs See in Black and White But most don't surf the Web Color, Graphics, Animated GIFs, and Image Maps.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
HTML BASIC
Colour & Image in HTML Wah Yan College (Hong Kong) Mr. Li C.P.
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.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
Tutorial 3: Working with Images. Objectives Session 3.1 – Identify the differences among image file types – Evaluate the purpose of alternative text –
Creating Web Pages with Links, Images, and Formatted Text.
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.
Graphic images for computers Stored in files of binary data - Binary blobs Software has to know the binary format to decode the file and render an image.
HTML Boot Camp: Rules and Images
THE COLORS OF LIGHT RED, GREEN and BLUE
IT Introduction to Website Development Welcome!
Chapter 7 Graphics and Color. 2 Principles of Web Design Chapter 7 Objectives Understand the differences between the Web-based image file formats - GIF,
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.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module F Building a Web Page with HTML.
Unit 1 — HTML BASICS Lesson 2 — HTML Organization Techniques.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Formatting Text and Lists Essentials for.
Web111a_chapt03.ppt HTM: Section 3 Colors Selecting Colors Methods Color names Color values Color Names 16 Basic Color Names HTML 3.05, Figure 3-2 Extended.
Computer Science 101 Images in Web Pages. Image Files Two common formats, GIF and JPEG GIF images are more flexible for use as icons JPEG images are sharper.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
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.
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.
 To specify blue as the background color for a page, put bgcolor=“blue” inside the tag. Of course, you can use many colors other than blue. You can choose.
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
HTML & Color How to Use Color  Backgrounds-  Usually a light color is best  Should have a color based on a theme or plan  Can have a dark.
Introduction to Programming the WWW I CMSC Winter 2004 Lecture 3.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
1 Creating the Home Page. 2 Creating a Table Table attributes  Two rows and two columns  No border  Left-aligned Change the vertical alignment of the.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
REEM ALMOTIRI Information Technology Department Majmaah University.
G046 Lecture 03 Introduction To HTML Mr C Johnston ICT Teacher
CSS Cascading Style Sheets *referenced from
Basic Web Publishing M. Scott Gartner 7/15/98.
Basic Web Design Week 3 - Graphics UVICELL. Web Graphics Concepts for Week 3 Selecting the right format for your image Creating a name banner for your.
Part 4 Text & Fonts © UNT in partnership with TEA1IT: Web Technologies - HTML Scripting.
HTML III ECT 270 Robin Burke.
CNIT 131 Graphics.
Tutorial 3 – Designing a Web Page
Cascading Style Sheets
Web Development & Design Foundations with HTML5 7th Edition
Introduction to HTML II
Tutorial 3 Working with Cascading Style Sheets
Hyperlinks, Images, Comments, and More…
Presentation transcript:

Tutorial 3 Designing a Web Page

Color There are 16 basic color names that are recognized by all versions of HTML: black, white, aqua, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, yellow Netscape and Explorer provide an extended list: blueviolet, chocolate, darkgoldenrod, firebrick, gold, hotpink, indigo, mintcream, orange, paleturquoise, peachpuff, salmon, seagreen, sienna, snow, tan

Color Values Any color is a mix of three basic colors, red, green, blue (R, G, B) The intensity of each color is assigned as a number between 0 and 255. We use hexadecimal numbers (hex for short) - the hex number corresponding to 255 is FF, the hex number for 0 is 00 (always 2 digits). For example yellow is an equal mix of red and green (255, 255, 0) with a corresponding hexadecimal triplet of FFFF00 See page 3.07/3.08 for more resources

Specifying a Color Scheme You need a color for the: background (bgcolor) Text (text) Link (link) Link that has been visited (vlink) Link that is being selected (alink) We specify the color either by name or #hexadecimal triplet i.e. either “red” or “#FF0000”

<body bgcolor = “#CDF0FF” text = “darkblue” link = “red” vlink = “green” alink = “purple”> This declares the color for the entire document, but you can change colors within the document. Suppose you want to change the color of the text of one particular phrase <font color = “maroon” >Hi There </font>

Changing the font You can also change the font face and size <font size = “4” face = “Arial, Helvetica, sans-serif”> Saint Xavier </font> The browser will type the text in size 4 and in Ariel if that font is installed on the computer, if not it will look for Helvetica, and then any generic sans-serif font.

Size Sometimes you don’t know exactly how big to make the text – Size 4? Size 5? Size 10? One option is to try it out and see what it looks like Another is to decide on the size relative to the surrounding text. If you just want it a little bigger than the previous text make size = “+1” (size = -1 makes it one point smaller)

Background Image <body background = “bricks.gif”> makes bricks.gif the background. The image is tiled – repeated over and over until it fills the page.

Tutorial Open arcatxt.htm in tutorial.03/tutorial folder and save as arcadium.htm Make the changes indicated in the gray boxes on pages 3.09, 3.13, 3.14, and 3.18

Deprecated Tags Are those that are considered outdated. Currently they can be used, but newer versions of HTML will not support them (they will not work in newer versions of HTML)

GIF (Graphical Interchange Format) Files Most commonly used Compatible with most browsers Limited to 256 colors, so usually used as clip art, line art, logos etc Not usually used as photos

Interlacing Noninterlaced gifs are displayed one line at a time, starting at the top. The image takes time to be displayed, but whatever you can see is sharp. With interlaced ones, every fifth line will be displayed first, then every sixth line etc. The image is initially seen in its entirety but blurry and then gets sharper.

Transparent Colors Are those colors in a gif file that are not displayed when the gif is displayed – allowing the background color of the page to come through.

Animated GIFs Are composed of several images, displayed one after the other to create animation. Many collections exist on the web (pg 3.24) There are also many places on the web where you can create your own (page 3.23) Insert the animated gif into your web page (page 3.24)

JPG (Joint Photographic Experts Group) jpg files differ from gifs in many ways: They use the full 16.7 million colors (and are therefore suitable for photographs) They use a file compression algorithm that enables them to be smaller (in memory size NOT image size) than gifs. They cannot use transparent colors They cannot use animation

Image alignment and size <img src = “ride.jpg” align = “left”> There are 7 different alignments, the main ones being top, bottom, middle, left and right. See the differences on page 3.29 Height and width values can also be specified (in pixels) in the image tag <img src = “ride.jpg” align = “left” height = 120 width = 200>

Space Around the Image This can also be specified in the image tag: <img src = “ride.jpg” align = “right” hspace = “15” vspace = “20” height = “200” width = “150”> In this case the image will be placed on the right. The height of the image will be 200 pixels, width 150 pixels, and there will be 15 pixels of horizontal space between image and text, 20 pixels of vertical space.

The Alt Attribute Allows you to specify text in place of your image. This text is displayed while the image is loading and also when your mouse hovers over the image. It allows the user to know what the image is as it is loading It is useful for users whose browsers will not display the image

General Tips Try to keep your page to 50Kb max. this will keep load time to a reasonable amount. You can do this by: Reducing the size of the image. Use an image editing application. Seeing if jpg format is smaller than gif. Using thumbnails Reusing images.

Insert ride.jpg into your web page (see page 3.27) Now alter the alignment to bottom, middle, top, left, right. Confirm your page looks like figure 3-34, page 3.29 Leaving the alignment at “right”, alter the spacing around the image (see page 3.30) and confirm your image looks like figure 3-36 In the image tag, insert an alt attribute, page 3.33 figure 3-38

Lab Complete Case1

Image Maps These are images in which certain areas (called hotspots) are links We must first define a map using a map tag. This can go anywhere in the body of the page <map name = “mapname”> </map> Now indicate the image uses this map < img src= “rocks.jpg” usemap = “#mapname”>

Within the image map we need to create the hotspots. Each area tag requires a shape, coordinates, and a url <map name =“mapname”> <area shape = “rect” coords = “10, 20, 50,70” href = “url” target = “window”> <area shape = “circle” coords = “10, 20, 50” href = “url” target = “window”> <area shape = “polygon” coords = “10, 20, 50, 50, 30, 60, 60, 80” href = “url” target = “window”> </map>

Borders Some browsers create a border around an image that contains links. You should alter this default by specifying your own border (even if you want it to be zero) <img src = “url” usemap = “#mapname” border = “0”>

Lab: Case 2 & 3 (you may need to finish Case 3 as homework) Homework: Case 4. Due Sat 18th, midnight