Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc. 2013. All Rights Reserved.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
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.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 4: Tables and Frames.
 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.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML: Hyptertext Markup Language Doman’s Sections.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
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 AND PROGRAMMING Introduction to XHTML.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
Internet & World Wide Web How to Program, 5/e. Revised by Dr. T. Tran for CSI3140 Copyright © Pearson, Inc All Rights Reserved.2.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introduction to XHTML 1 Chapter 4 Introduction to XHTML: Part 1 Reference From: Internet & World Wide Web: How to Program Deitel, Deitel & Goldburg.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
Tables creating a table within a web page. What makes up a table? Columns Rows.
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Introduction to XHTML/HTML5 (part 1) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web (multiple editions)
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 22 - i-mode Outline 22.1 Introduction 22.2 Japan’s Telecommunications Industry and Infrastructure.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to HTML5.
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
4 Introduction to XHTML.
Working with Tables: Module A: Table Basics
4 Introduction to XHTML.
4 Introduction to XHTML.
>> HTML: Tables.
Elements of HTML Web Design – Sec 3-2
Intro to HTML Mr. Singh.
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 1: Introduction to XHTML (part 1)
The Web Warrior Guide to Web Design Technologies
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
1 Introduction to XHTML.
Introduction to HTML- Basics
Introduction to XHTML Cont:.
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
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.

 The most popular image formats used by web developers today are PNG (Portable Network Graphics) and JPEG (Joint Photographic Experts Group).  Users can create images using specialized software, such as Adobe Photoshop Express ( G.I.M.P. ( Inkscape ( and many more.  Images may also be acquired from various websites, many of which offer royalty-free images. 2

 The img element’s src attribute specifies an image’s location  Every img element must have an alt attribute, which contains text that is displayed if the client cannot render the image ◦ The alt attribute makes web pages more accessible to users with disabilities, especially vision impairments ◦ Width and height are optional attributes  If omitted, the browser uses the image’s actual width and height  Images are measured in pixels 6

alt Attribute  A browser may not be able to render an image.  If a browser cannot render an image, the browser displays the alt attribute’s value.  The alt attribute is also important for accessibility—speech synthesizer software can speak the alt attribute’s value so that a visually impaired user can understand what the browser is displaying. For this reason, the alt attribute should describe the image’s contents. 7

Void Elements  Some HTML5 elements (called void elements) contain only attributes and do not mark up text (i.e., text is not placed between a start and an end tag).  You can terminate void elements (such as the img element) by using the forward slash character (/) inside the closing right angle bracket (>) of the start tag.  For example, lines 15–16 of Fig. 2.6 could be written as follows: <img src = "jhtp.png" width = "92" height = "120" alt = "Java How to Program book cover" /> 8

Using Images as Hyperlinks  By using images as hyperlinks, you can create graphical web pages that link to other resources.  In Fig. 2.7, we create five different image hyperlinks.  Clicking an image in this example takes the user to a corresponding web page—one of the other examples in this chapter. 9

 HTML5 provides character entity references (in the form & code ; ) for representing special characters that cannot be rendered otherwise  The code can be: ◦ Word abbreviations ◦ Numbers  Decimal  Hexadecimal 13

 Figure 2.9 demonstrates how to use special characters in an HTML5 document. 16

 A horizontal rule, indicated by the tag renders a horizontal line with extra space above and below it in most browsers.  The horizontal rule element should be considered a legacy element and you should avoid using it.  CSS can be used to add horizontal rules and other formatting to documents. 19

 Unordered list element ul ◦ creates a list in which each item in the list begins with a bullet symbol (typically a disc) ◦ Each entry is an li (list item) element. Most web browsers render these elements with a line break and a bullet symbol at the beginning of the line. 20

Nested Lists  Lists may be nested to represent hierarchical relationships, as in a multi-level outline.  Figure 2.11 demonstrates nested lists and ordered lists.  The ordered-list element ol creates a list in which each item begins with a number. 23

◦ Tables are frequently used to organize data into rows and columns. ◦ The table element defines an HTML5 table ◦ The summary attribute summarizes the table’s contents and is used by speech devices to make the table more accessible to users with visual impairments. ◦ The caption element specifies a table’s title. ◦ It’s good practice to include a general description of a table’s information in the table element’s summary attribute—one of the many HTML5 features that make web pages more accessible to users with disabilities.  Speech devices use this attribute to make the table more accessible to users with visual impairments. 28

 A table can be split into three distinct sections: ◦ Head ( thead element)  Table titles  Column headers ◦ Body ( tbody element)  Primary table data ◦ Table Foot ( tfoot element)  Calculation results  Footnotes  Above body section in the code, but displays at the bottom in the page 33

 tr Element ◦ Defines individual table rows ◦ Element th  Defines a header cell  Td Element ◦ Contains table data elements 34