INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.

Slides:



Advertisements
Similar presentations
Iframes & Images Using HTML.
Advertisements

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.
Images & Tables. Three graphic file types are supported by today's browsers: GIF - Graphic Interchange Format JPEG - Joint Photographic Experts Group.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and 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.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Introduction to HTML II Shih-Heng Chin. Preface Structure of a HTML File Elements used frequently Tables.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
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
Chapter 14 Introduction to HTML
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 XHTML Tables A table is a matrix of cells, for displaying content in rows and columns The cells can include almost any element Some cells display row.
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.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 2 HTML (Hypertext Markup Language) Part I.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
HTML (HyperText Markup Language)
HTML II ECT 270 Robin Burke. 2 Outline Review Images text flow links Image maps Colors Tables.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
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 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
HTML, Part Showing Pictures: The Image Tags Image Tag Format –src short for source –alt for text –Can use absolute or relative pathname.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
HTML tips BTM 395: Internet Programming. Components of website development Content Structure Format and design Dynamics and interactivity –Forms –Client-side.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Week Four– Advance HTML 2 Dr. Fadi Safieddine. 2 Lecture Content Basic HTML Tables Using based Feedback form Creating and Using Image Maps Nested.
Computer Images Can store color info about each pixel, but makes file BIG Compression for Web 15.
Academic Year, Spring Semester Bilkent University - Faculty of Art, Design and Architecture Department of Communication and Design CS 153 Introduction.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
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.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
INT222 – Internet Fundamentals
INT222 – Internet Fundamentals Week 8: Using New HTML features 1.
HTML III ECT 270 Robin Burke.
HTML & CSS Jan Janoušek.
Web Systems & Technologies
Organizing Content with Lists and Tables
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Inserting and Working with Images
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 4 - Introduction to XHTML: Part 1
Chapter 5 - Introduction to XHTML: Part 2
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Computers and Scientific Thinking David Reed, Creighton University
Chapter 5 Graphics & Text Styling Basics Key Concepts
Introduction to HTML- Basics
Introduction to XHTML Cont:.
Implementing Tables to Hold Data in HTML
Introduction to HTML.
Hyperlinks, Images, Comments, and More…
Web Client Side Technologies Raneem Qaddoura
Presentation transcript:

INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE

22 Outline Table Image Audio Video Next class DOM

33 Table tables are supposed to structure tabular data, and not for web page layouts. Make web page layouts using CSS. Layout table: sometimes must be used when no equivalent CSS construct is available.

4 Grades for Course INT222 Student IDStudent Name Grade Tom Helen Kelly78

55 Table Tags : defines the table, all table tags must be inside. : defines the caption of a table. : defines a table row. : defines a table header, bold and centered by default. : defines a data cell, text regular and left-aligned by default.

66 Table Attributes - border : value is the thickness of the table border in pixels. By default, the table has no borders, - the border attribute is absent -

77 Table Attributes -colspan - value: positive integer, specifies how many columns of the table this cell should span. - By default value ='1'.

88 Table Attributes - rowspan - value: positive integer, specifies how many rows of the table this cell should span. - By default value ='1'.

9 Table.html

Table Sections - group the first one or more rows of a table for formatting - group the middle rows of a table for formatting - group the last one or more rows of a table for formatting 10

11 table section table {border: solid} caption {font-size: 16pt; color: purple;} thead {color: red; background-color: yellow;} tbody {color: green;height: 100px;} tfoot {color: blue} Table_section.html

Table Template Table Caption Header, first cell. Header, second cell. Header, third cell. Second row, first cell. Second row, second cell. Second row, third cell. more row, first cell. more row, second cell. more row, third cell. Foot row, first cell. Foot row, second cell. Foot row, third cell. </html

Image Three basic image formats for the web: 1.GIF (Graphics Interchange Format) primarily used for line drawings, limited to 256 colours usually much smaller files than JPEG for the same size image supports animation (several images displayed consecutively) supports image transparency uses lossless compression 13

Image Three basic image formats for the web: 2. JPG (JPEG - Joint Photographic Experts Group) best for photographic images, can contain 16.7 million colours does not support image transparency uses lossy compression 3. PNG (Portable Network Graphics) intended as a GIF replacement can contain 16.7 million colours supports image transparency uses lossless compression 14

15 Image Tags src: image to display width and height: dimension of the image. Browser reserves a place for the image on the page and continues loading other page elements instead of waiting for the image to load. – recommend use alt: alternative label for the image, in case fail to load the picture title: specify extra information about the tag : positive integer, number of pixels for the width of border navigation.html

Image link 16 navigation.html

& this is a figure caption for a flower <img src="flower1.jpg" width=200 height=100 alt="Flower" title="Flower " /> 17 usually with represents a self-contained content for: image, illustration, diagram, code snippet, schema Figure.html

Image Generators for Web Developers Adobe photoshop More from you

19 Image Mapping Image -> image map, - one or more links apply to different regions of the image - click on different parts of the image -> activate different hyperlinks

20 Make an Image Map 1 image ->1 to more smaller pieces, Put link tags around each piece of image 1 link 1 piece of image.

21 Make an Image Map Active areas are described by their pixel co-ordinates with 0,0 being the top left corner. Put the image in your page using a normal image tag, except add the attribute usemap="#name_of_map", e.g., You can have more than one image map in the same page as long as they've got different names. (0,0)

22 Image Map Example imagemap.html, imagemap2.html

23 Area Tag Put tag for each active area Attributes for tag : - shape: rect (rectangle), circle, poly (polygon). - coords: coordinates of this shape. Start from upper left corner “0,0”. Each number is separated by commas, * Rectangle: “x1, y1, x2, y2” coordinates of upper-left and lower-right corners * Circle: “x,y, r”, coordinate of circle center and the radius of the circle in pixels. * Polygon: “x1,y1, x2, y2, x3, y3,…”, coordinates of each point - href: like the href in a regular link tag. - alt: alternative label <area shape = "rect" coords = "0,0, 200, 166" href = " alt = “area rect"/> <area shape = “circle" coords = “150,260, 130" href = " alt = “area circle"/> <area shape = “poly" coords = "0,0, 50, 60, 150, 230, 100, 366" href " alt = “area polygon"/>

24 Tools for Creating Images & Image Maps X-Map: Free Html Map Editor used for determining image coordinates X-Map: Free Html Map Editor Paint Shop Pro used for image creation Paint Shop Pro nTabview=tab1&tabview=tab0 nTabview=tab1&tabview=tab0 Gif Construction used for image creation and animation Gif Construction Truespace Graphics used for image creation and animation Truespace Graphics

Current, no standard for playing audio files on a web page. Most audio files are played through a plug-in (like flash). However, different browsers may have different plug-ins. HTML5 specifies a standard way to embed an audio file on a web page: - the element. IE 9, Firefox, Opera, Chrome, and Safari support IE8 and earlier versions, do not support. 25 horse.ogg horse.mp3 Your browser does not support the audio element. Audio - Horse /figcaption> Test_audio.html

Audio Formats and Browser Support 26

27 Test_video.html

Summary of HTML tags Inside the head element: – title – script – style – link The remainder are in the body element.

Summary of HTML tags Content containers: – p – div – span – details – em (and i) – strong (and b) – mark – pre – header – footer – nav – article – section – blockquote – h1, h2, h3, h4, h5, h6 – script (yes, script can be in the head and/or body) Content container for row-and-column data: table tbody th tr td

Summary of HTML tags List-making: – ul – ol – li Link: – a Media: – img – audio – video – canvas Interactivity (for user input): – form (and all its elements) Separators (breaks): – br – hr

Bonus Time

Next Class DOM 32

Thank you!