Introduction to XHTML Cont:.

Slides:



Advertisements
Similar presentations
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Advertisements

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.
 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.
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 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
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.
 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.
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.
 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.
>> 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.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
2.2 XHTML (cont.). Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare.
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.
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.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Jozef Goetz contribution, J. Goetz, 2016  Pearson Education, Inc. All rights reserved.
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
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
XHTML Dr. Reda Salama. Reading 2.
XHTML Dr. Reda Salama. Reading 2.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Introduction to HTML5.
Designing a Web Page with Tables
Marking Up with XHTML Tags describe how a web page should look
Organizing Content with Lists and Tables
4 Introduction to XHTML.
Working with Tables: Module A: Table Basics
4 Introduction to XHTML.
4 Introduction to XHTML.
Elements of HTML Web Design – Sec 3-2
>> HTML: Tables.
Elements of HTML Web Design – Sec 3-2
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
Chapter 5 Introduction to XHTML: Part 2
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
Chapter 5 - Introduction to XHTML: Part 2
HTML and CSS 8th Edition Chapter 18: Tables.
4 Introduction to XHTML.
Marking Up with XHTML Tags describe how a web page should look
1 Introduction to XHTML.
Introduction to HTML- Basics
Html.
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
Lesson 5: HTML Tables.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Introduction to XHTML Cont:

Images 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 but recommended If omitted, the browser uses the image’s actual width and height Images are measured in pixels

Images (Cont.) Some XHTML elements are empty elements that contain only attributes and do not mark up text Empty elements (e.g., img) must be terminated, either by using the forward slash character (/) inside the closing right angle bracket or by explicitly writing an end tag

Specifies the image file’s location Specifies the image’s width Specifies the image’s height Specifies text to display if the image is unavailable

Creates a hyperlinked image

Special Characters and Horizontal Rules 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)

Special Characters and Horizontal Rules Cont. Most browsers render a horizontal rule, indicated by the <hr /> tag, as a horizontal line The hr element also inserts a line break above and below the horizontal line

Inserts a horizontal rule, with a line break before and after Inserts the special characters © and &

Creates a strikethrough effect Makes the 1 subscript Makes the 2 superscript Inserts the special symbols < and ¼ Emphasizes text

Lists Unordered list element ul creates a list in which each item in the list begins with a bullet symbol (called 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

Creates an unordered list Makes hyperlinked elements into individual list items

Lists (Cont.) The ordered list element ol creates a list in which each item begins with a number Lists may be nested to represent hierarchical data relationships

A single list element

Creates an ordered list within a list element Ends nested list Ends the list element Another single unordered list element Creates an ordered list within this list element

Tables table element defines an XHTML table Attribute summary summarizes the table’s contents and is used by speech devices to make the table more accessible to users with visual impairments Element caption describes the table’s content The text inside the <caption> tag is rendered above the table in most browsers

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

Tables Cont. Element tr Defines individual table rows Element th Defines a header cell Element td Contains table data elements

Begins a new XHTML table Sets the table’s border to be one pixel wide Sets the table’s width to 40% of the screen Describes the table’s contents in the summary attribute Sets the text above the table Creates a head element Creates a table heading cell in the new table row Makes a new table row Creates the next cell in the row

Creates a foot section Creates table header cells at the bottom of the table Creates a body section Inserts a cell in the body of the table Ends the table

Tables Cont. You can merge data cells with the rowspan and colspan attributes The values of these attributes specify the number of rows or columns occupied by the cell Can be placed inside any data cell or table header cell

Makes the header cell span 2 rows

Makes the header cell span 4 columns