HTML II ECT 270 Robin Burke. 2 Outline Review Images text flow links Image maps Colors Tables.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Six Tables.
Advertisements

Common Tags Always include the … tags Comments placed inside tags HTML documents –HEAD section Info about the document Info in header not generally rendered.
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
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
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.
Introducing Web Tables
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
 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.
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.
The Power of Tables They aren't just for sitting stuff on anymore...
 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.
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
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 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.
Tables in HTML Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Identifies the Structure Table Row Column 1 Table Heading Column 2.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 5: Working with Tables.
CS105 Introduction to Computer Concepts HTML
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.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
>> 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.
Getting Started with HTML Please use speaker notes for additional information!
 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.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
JavaScript Professor Robin Burke. 2 Outline Quiz Tables JavaScript.
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.
Using HTML tables.... Objectives... How to create tables Basic,, tags Some arguments with table Height, width, border Special “tricks” Cell text alignment.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
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.
ECA 228 Internet/Intranet Design I Tables. ECA 228 Internet/Intranet Design I Basic HTML Tables Created as a way to present rows and clumns of data.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
Lesson 7. Tables Table Tags and Attributes Tables HTML tables are used in two main ways: 1.To organize tabular data in a familiar spreadsheet-like way.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
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.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 5.
HTML III ECT 270 Robin Burke.
HTML.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Marking Up with XHTML Tags describe how a web page should look
Working with Tables: Module A: Table Basics
Elements of HTML Web Design – Sec 3-2
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
Chapter 5 Introduction to XHTML: Part 2
Using HTML Tables SWBAT: - create tables using HTML
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to HTML.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML II ECT 270 Robin Burke

2 Outline Review Images text flow links Image maps Colors Tables

3 HTML Elements / tags content Attributes content Entities &  &

4 Common problems Here is my picture Here is my link. Here is some more of my web page... heading

5 When something is broken: Check spelling rehf vs href Check delimiters Quotes Angle brackets Start and end tags Check tag overlap

6 Elements Structural html, head, body, Headings h1, h2, h3, etc. Text divisions br, p Lists ul, ol, li Style font

7 Anchor elements Used for both links and internal locations External link text Internal location place text Links to internal link to place

8 Image element img Attributes src="URL" align provides for text flow different from paragraph alignment alt text displayed when image is not height / width fixes image size can be used for scaling

9 Image text flow example

10 Images as links image element as content of anchor element Border by default usually turn it off img border=0

11 <img src="../ect270.gif" alt="ECT 270: Client-Side Web Application Development" border="0" width="475" height="75"> Example from course web site

12 Image scaling Setting height and width helps the browser but be careful Wrong choices lead to distorted images IE trick for getting image size Also browser downloads whole images for thumbnails, shrink in image program

13 Image maps Example

14 Basic idea Large image always rectangular Identify "hotspots" geometric regions associate each with a URL

15 Metra HTML source...

16 HTML In the image usemap attribute URL for the map element to use element contains elements element associates geometric shapes and URLs

17 Structure... more areas...

18 Shapes rect rectangular region pixels for top left corner and bottom right circle circular region pixels for center, radius poly arbitrary number of vertices

19 Shape examples X1=53 x2=162 x=273 y1=83 y2=180 y=131 r=36

20 Image map example

21 Identify regions Graphics program Image map utilities MapEdit on book CD ISMAP trick put the attribute "ismap" in img tag put inside an anchor element

22 Example Creating an image map

23 Colors Color is an important part of a UI already important for the web (link colors) Can be crucial to good design can be detrimental if misused Used many places in HTML in body element bgcolor sets background color for the whole page bgcolor="blue"

24 What if I want my own color? Not restricted to the "named" colors RGB triplet red/green/blue values represented in hexidecimal But on systems with 8-bit color only 216 colors available "Netscape" or "web-safe" palette

25 What if I use a non-web-safe color? The browser tries to approximate the color using dithering sometimes OK, usually ugly The good news 8-bit color is going away

26 How to specify bgcolor="#FFFFFF" # means that a triplet is coming FF = 255, F = 15 hex FF = 15*16+15 white

27 Examples

28 Designing colors MS Paint + Windows calc Web tools l.html

29 Tables A table is a rectangular region organized into rows and columns row-based definition element declares a table element declares a row element declares a division (cell) within a row

30 More elements declares a caption for the table declares a "header" cell usually bold and centered

31 Example This is a table First Row A1

32 Border control border attribute of table gives the width of the visible border set to 0 for "invisible" table frame controls which sides of the table are framed default = "box", many other options rules controls which directionality of borders default="all"

33 Frame

34 Rules

35 Table spacing cellspacing space between cells cellpadding space between cell text and cell border align (as for images) text flow around table

36 Other table attributes bgcolor background color for table width pixels or % of browser window height pixels or % of browser window

37 TR, TH and TD Share many table attributes bgcolor width, height % means % of table size align horizontal alignment valign vertical alignment

38 Alignment

39 Spanning A cell can span multiple rows or columns Attributes of td and th colspan # of columns included rowspan # of rows included

40 Span example Cell spans two cols and two rows: Cell spans three cols: Cell spans ……………. Complete

41 Tables for layout A grid is the most common layout graphic layout tool Early versions of HTML provided no layout facilities logical structure only Tables provided a grid-based mechanism to get layout in spite of HTML

42 Table-based layout Organize the page into sections determine vertical and horizontal divisions Design outer table first work towards inner ones Use border = 0 color to help distinguish areas cell padding to preserve whitespace

43 <body background="RedBar.jpg" Image+links Nested Table Outer table Logo Main Side note Another note Nested table

44 Examples many on the web course lecture notes CTI homepage Chicago Tribune

45 Best practices Draw on paper first show it to your co-workers better yet, your users Use comments to mark different parts of the page Not too complex / busy

46 Lab #2 / Homework #3 Page design with tables