Lecture 15. A Very Brief Introduction to HTML and XHTML, part IV Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
Iframes & Images Using HTML.
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.
Web Site Development Test 2 Working in DreamWeaver.
Chapter 17 Creating Images for the Web. Chapter Lessons Learn about Web features Optimize images for Web use Create a button for a Web page Create slices.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
V Summer workshop in Guildford County, July, 2014.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
Marking Up With Html: A Hypertext Markup Language Primer
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.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
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.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
IT Introduction to Website Development Welcome!
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Web 101 Third Edition by Wendy G. Lehnert & Richard L. Kopec Chapter 9: Basic.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Graphics.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer 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) –
1 Basic HTML. 2 Part 1: Basic Web Page Production.
C1999 Kathleen Schrock 1 Basic HTML By Kathy Schrock.
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.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Tables,
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
Web Design Basics.
Notes Chapter 10—Adding Graphics. There are two kinds of graphics on the Internet: those you can use on your own Web pages, and those you cannot.  Many.
A BCDE.
FILE TYPES FOR WEB DESIGN 1 HOW SHOULD I SAVE?. GRAPHICS INTERCHANGE FORMAT (GIF) Best used for flat-color, sharp-edged art or text Clip art, logos Compression.
Raster Graphics 2.01 Investigate graphic image design.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML Chapter 4 Source: CSE 190 M (Web Programming) lecture notes, es/slides/lecture02-basic_xhtml.html.
1 Perception and VR MONT 104S, Fall 2008 Lecture 20 Computer Graphics and VR.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
Marking Up with XHTML Tags describe how a web page should look
2.01 Understand Digital Raster Graphics
Image Formats.
2.01 Investigate graphic image design.
1.01 Investigate graphic types and file formats.
Web Development & Design Foundations with HTML5 7th Edition
2.01 Understand Digital Raster Graphics
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
2.01 Investigate graphic image design.
Creating Images for the Web
Introduction to XHTML Cont:.
Dreamweaver Fireworks Flash
2.01 Understand Digital Raster Graphics
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
2.01 Investigate graphic image design.
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
2.01 Investigate graphic image design.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Lecture 15. A Very Brief Introduction to HTML and XHTML, part IV Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet, Fall 2011

Learning Objectives Learn the different formats of pictures Find out how to use tables to format your Web pages. How to add special characters to your webpage How to embed audio/video files to your page Absolute and relative paths of files Learn how to publish a Web page. 2

PNG, JPEG, and GIF are the most common graphics formats on the Web. JPEG/JPG is better suited for high-resolution photographs and complex graphics. GIF is better suited for line drawings, cartoons and simple graphics. PNG was designed to replace the GIF format ▫ Better lossless compression, allows variable transparency, image scaling information for different resolutions, and brightness data ▫ Not support animations Other formats include: BMP, TIFF but not recommended for the web. Why? Image File Formats 3

 The JPG format is good for the Web because JPG images can be compressed using lossy compression techniques.  Lossy compression techniques reduce the amount of memory required by an image in exchange for some degradation in the image quality. Lossy Compression 4

 JPG images (top) and GIF images (bottom) handle color gradients differently. Color Gradient 5

a. A photo originally in a lossless format b. When compressed to JPEG, the photo is 10% of its original file size, with little perceptible difference. c. Simple images compress well in GIF d. JPEG manages to attain a similar file size, but at the cost of some image artifacts. 6

This image has no transparency - the background is white. As long as the image is on a white background there's no problem - it looks transparent anyway. The image is placed on a colored background. The lack of transparency becomes obvious. If the white background is made transparent, the image will blend nicely into (almost) any colored background. Using Transparent GIFs 7

You can use any PNG, JPEG or GIF file as a background for a Web page. The browser will place the image in the upper- left corner and will tile it left to right. Background Patterns 8

Graphics for Web Pages Acquire your image files in advance. Portable Network Graphics (.png) files are recommended for drawn images. Joint Photographic Expert Group (.jpg) for photographs. GIF (graphics interchange format) works too, supports animation. Keep the image size as small as possible - ideally less than 40 KB. 9

Put all images files in the same folder as the Web page that displays them before placing onto the page. Inserted images are not actually placed into the Web page file. Only the name of the file to be displayed is actually inserted. When publishing your Web page, you must also “publish” all the image files too. 10

Page Layouts Using Tables ▫ Tables can be used to control the position of Web page elements relative to each other. ▫ Tables are also used to show tabular information! 11

You can put anything inside a table data element (a cell), even another table. You can create borders on your Web page. Tables can be used to give Web pages a margin. Each cell, row, or column can have it’s own background color or pattern. You can extend a cell across multiple columns. You can extend a cell across multiple rows. 12

A table can be used to create a graphical navigation bar. Use a general-purpose image-splitting utility (like Splitz) to split an image into rectangular sections. Insert each section into a single row table with zero border, spacing, and padding. Convert each image section into a link. Creating a Navigation Bar 13

Special characters XHTML provides special characters or entity references (in the form & code ; ) for representing characters that cannot be rendered otherwise The code can be: ▫ Word abbreviations ▫ Numbers  Decimal  Hexadecimal Example: & character represented by: ▫ &amp ▫ &#38 (decimal) ▫ &#x26 (hexadecimal) 14

Some special HTML character codes: 15 Frequently used HTML character codes are preferred because they are easier to remember than the decimal codes For more exotic characters, check out

16 Fig. 4.7 | Inserting special characters (Part 1 of 2). Inserts a horizontal rule, with a line break before and after Inserts the special characters © and &

17 Fig. 4.7 | Inserting special characters (Part 2 of 2). Makes the 2 superscript Makes the 1 subscript Creates a strikethrough effect Emphasizes text Inserts the special symbols < and ¼

Add audio/video files Provide a link to the file ▫ Have to store the file on the server too Embed a video into the webpage ▫ Embed your own video file ▫ Embed an absolute file on the Internet with more attributes ▫ Embed a youtube file

19 The current HTML document is my.html and the current directory is Iam C:\-  Iam -my.html -your.html  Type this ; Your link C:\-  Iam -my.html  Child -your.html  Type this ; Your link C:\-  Iam -my.html  Sister -your.html  Type this ; Your link C:\-  Mother -your.html  Iam -my.html  Type this ; Your link How to specify Relative pathnames

20 How to specify Relative pathnames The HTML document is my.html and the image file is dragonfly.gif C:\-  Iam -my.html ☞ Type this ; -dragonfly.gif C:\-  Iam -my.html ☞ Type this ;  Image -dragonfly.gif C:\-  Iam -my.html ☞ Type this ;  Image -dragonfly.gif C:\-  Image -dragonfly.gif ☞ Type this ;  Iam -my.html

In order to make your Web page visible to the world, it must be uploaded to a Web server - this is publishing. You must also upload any files (images, sounds, videos) that you use on your page. The particular method used depends on your Internet Service Provider (ISP) or your Web page host service provider. Publishing Your Web Page 21

To publish your page you must ▫ Acquire access to a Web server. ▫ Determine the DNS address of your Web server. ▫ Determine the pathname needed when you upload files to the server. ▫ Upload your Web files to the Web server. 22

▫ Determine the URL to use to view your home page. ▫ Fix any file protection codes that need fixing - contact your ISP for help if access to your Web page is forbidden! You can upload files with an FTP client or an HTML construction kit that has an upload function. 23

Further Reading Wikipedia’s explanation of HTML: ▫ W3schools.com XHTML Tutorial ▫ W3schools.com CSS Tutorial ▫ W3schools.com JavaScript Tutorial ▫ HTML Color Codes: ▫ ▫ HTML Tag Quick Reference Guide ▫