SlideShare a Scribd company logo
XHTML
1. Introduction
2. First XHTML Example
3. Headings
4. Linking
5. Images
6. Lists
7. Tables
8. Forms
• T h e E x t e n s i b l e H y p e r t e x t M a r k u p L a n g u a g e .
• M a r k u p l a n g u a g e t h a t s p e c i f i e s t h e f o r m a t o f t h e t e x t t h a t
i s d i s p l a y e d i n a w e b b r o w s e r s u c h a s :
- M i c r o s o f t ’ s I n t e r n e t E x p l o r e r
- M o z i l l a F i r e f o x .
Introduction
First XHTML Example
Elements of an XHTML document
 html element - encloses the head section (represented by the head
element) and the body section (represented by the body element).
 the head element contains :
- information about the XHTML
- special document formatting instructions called style sheets and client-
side programs called scripts for creating dynamic
 the body element.
Elements of an XHTML document
XHTML documents delimit an element with
 start tag - element name in angle brackets (e.g.,
<html>).
 end tags - element name preceded by a forward
slash (/) in angle brackets (e.g., </html>).
Headings
XHTML provides :
 six headings -
called heading elements,
for specifying the relative
importance of information
Headings
Linking
 Hyperlink - references to other resources, such as : -
XHTML documents
- Images.
 When a user clicks a hyperlink, the browser tries to
execute an action associated with it (e.g., navigate to a
URL, open an e-mail client, etc.).
 In XHTML, both text and images can act as hyperlinks.
 Links are created using the a (anchor) element.
Linking
Linking
Images
Images
 Lines 14–15 use an img element to insert an image
in the document.
 The image file’s location is specified with the img
element’s src attribute.
 Every img element in an XHTML document must
have an alt attribute. If a browser cannot render an
image, the browser displays the alt attribute’s value.
Using Images as Hyperlinks
 By using images as hyperlinks, web developers can create
graphical web pages that link to other resources.
 Lines 14–17 create an image hyperlink by nesting an img
element in an anchor (a) element.
Lists
 The unordered list element ul creates a list in
which each item begins with a bullet symbol
(called a disc).
 Each entry in an unordered list (element ul in line
17) is an li (list item) element (lines 19–22).
 Most web browsers render each li element on a new
line with a bullet symbol indented from the
beginning of the line.
Lists
Nested Lists
 Lists may be nested to represent hierarchical
relationships, as in an outline format.
 Figure demonstrates nested lists and ordered
lists.
 The ordered list element ol creates a list in
which each item begins with a number.
Xhtml
Xhtml
Tables
 Tables are frequently used to organize data into rows and
columns.
 Tables are defined with the table element (lines 15–62).
Lines 15–17 specify the start tag for a table element that
has several attributes.
 The border attribute specifies the table’s border width in
pixels. To create a table without a border, set border to "0".
 This example assigns attribute width the value "40%" to set
the table’s width to 40 percent of the browser’s width..
 As its name implies, attribute summary (lines 16–17)
describes the table’s contents.
Xhtml
 A table has three distinct :
1. The head section - is defined with a thead
element (lines 25–30), which contains header
information such as column names. Each tr element
(lines 26–29) defines an individual table row.
 The columns in the head section are defined with th
elements. Most browsers center text formatted by th
(table header column) elements and display them in
bold.
 Table header elements are nested inside table row
elements (lines 27–28).
2. The body section - contains the table’s primary
data.
 The table body (lines 43–60) is defined in a tbody
element.
 In the body, each tr element specifies onerow.
 Data cells contain individual pieces of data and are
defined with td (table data) elements in each row.
3. The foot section (lines 34–39) is defined with a
tfoot (table foot) element.
 the foot section can contain table rows, and each row
can contain cells.
 Cells in the foot section are created using th
elements, instead of the td elements used in the table
body.
Forms
 XHTML provides a mechanism, called a form, for
collecting data from a user.
 Forms can contain :
1. Visual components – include clickable buttons and
other graphical user interface components with
which users interact.
 Nonvisual components, called hidden inputs, store
any data that you specify, such as :
- email addresses
- XHTML document filenames that act as links.
Xhtml
Bibliography
 Internet & World Wide Web How to Program ,
Fourth Edition ,P&H Deitel .
Xhtml

More Related Content

PPT
Xhtml
Abdul Khan
 
PDF
HTML language and all its tags .....
Nimrakhan89
 
PPTX
HTML Introduction
eceklu
 
PPTX
Empowerment Technologies Lecture 10 (Philippines SHS)
John Bosco Javellana, MAEd.
 
PPTX
Computer fundamentals-internet p2
Leo Mark Villar
 
PPTX
Xml For Dummies Chapter 4 Adding Xhtml For The Web
phanleson
 
DOCX
What is html xml and xhtml
FkdiMl
 
PPT
Week 2
Rowena LI
 
Xhtml
Abdul Khan
 
HTML language and all its tags .....
Nimrakhan89
 
HTML Introduction
eceklu
 
Empowerment Technologies Lecture 10 (Philippines SHS)
John Bosco Javellana, MAEd.
 
Computer fundamentals-internet p2
Leo Mark Villar
 
Xml For Dummies Chapter 4 Adding Xhtml For The Web
phanleson
 
What is html xml and xhtml
FkdiMl
 
Week 2
Rowena LI
 

What's hot (20)

PDF
Vskills certified html designer Notes
Vskills
 
PDF
Introduction to XHTML
Hend Al-Khalifa
 
PPTX
Xhtml
sana mateen
 
DOCX
CLASS VII COMPUTERS HTML
Rc Os
 
PPTX
HTML 5 Topic 2
Juvywen
 
PDF
HTML - part 1
Fahad Masood
 
PPSX
Xhtml
Veena Gadad
 
PPTX
Introduction to html fundamental concepts
Tsebo Shaun Masilo
 
PPTX
Web Application and HTML Summary
Fernando Torres
 
PPTX
HTML5 Topic 1
Juvywen
 
PPT
HTML Introduction
c525600
 
PPTX
Final by smit parekh
SMIT PAREKH
 
PPT
Diva
diva23
 
PPT
Html book2
Diksha Garg
 
ODP
Tags in html
Balakumaran Arunachalam
 
PPTX
WEB PAGE DESIGN USING HTML
Sneha Mukherjee
 
PPT
Tutorial 08 - Creating Effective Web Pages
guest22edf3
 
PDF
Wp unit 1 (1)
Bhavsingh Maloth
 
PPT
Tutorial 8 - Creating Effective Web Pages
dpd
 
Vskills certified html designer Notes
Vskills
 
Introduction to XHTML
Hend Al-Khalifa
 
CLASS VII COMPUTERS HTML
Rc Os
 
HTML 5 Topic 2
Juvywen
 
HTML - part 1
Fahad Masood
 
Introduction to html fundamental concepts
Tsebo Shaun Masilo
 
Web Application and HTML Summary
Fernando Torres
 
HTML5 Topic 1
Juvywen
 
HTML Introduction
c525600
 
Final by smit parekh
SMIT PAREKH
 
Diva
diva23
 
Html book2
Diksha Garg
 
WEB PAGE DESIGN USING HTML
Sneha Mukherjee
 
Tutorial 08 - Creating Effective Web Pages
guest22edf3
 
Wp unit 1 (1)
Bhavsingh Maloth
 
Tutorial 8 - Creating Effective Web Pages
dpd
 
Ad

Similar to Xhtml (20)

PDF
Web Design & Development - Session 4
Shahrzad Peyman
 
PDF
web designing blogger html codes
VENGADESHA3
 
PDF
Chapter 2 - HTML5.pdf
MhndHTaani
 
PPT
Day Of Dot Net Ann Arbor 2007
David Truxall
 
PDF
SessionTen_CaseStudies
Hellen Gakuruh
 
PPT
Higher Computing Science HTML
Forrester High School
 
PPTX
Web design - Working with Text and Lists in HTML
Mustafa Kamel Mohammadi
 
DOC
Data Structure
Ibrahim MH
 
PDF
Introduction to Data Structure
Jazz Jinia Bhowmik
 
PPTX
html.pptx
AnuragPandey285102
 
PPT
1597380885789.ppt
PraveenKumar977108
 
PPTX
Basic xml syntax
Raghu nath
 
PPT
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
yarotos643
 
PPTX
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
natiwoss2009
 
PPT
Organizing Content with Lists and Tables
Nicole Ryan
 
PPTX
Web design slides.pptx for university student
mukiibirhines2001
 
PDF
PPT-203105353-1.pdf
PINTUCHAUHAN8
 
PPTX
HTML Training Part1
than sare
 
Web Design & Development - Session 4
Shahrzad Peyman
 
web designing blogger html codes
VENGADESHA3
 
Chapter 2 - HTML5.pdf
MhndHTaani
 
Day Of Dot Net Ann Arbor 2007
David Truxall
 
SessionTen_CaseStudies
Hellen Gakuruh
 
Higher Computing Science HTML
Forrester High School
 
Web design - Working with Text and Lists in HTML
Mustafa Kamel Mohammadi
 
Data Structure
Ibrahim MH
 
Introduction to Data Structure
Jazz Jinia Bhowmik
 
1597380885789.ppt
PraveenKumar977108
 
Basic xml syntax
Raghu nath
 
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
yarotos643
 
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
natiwoss2009
 
Organizing Content with Lists and Tables
Nicole Ryan
 
Web design slides.pptx for university student
mukiibirhines2001
 
PPT-203105353-1.pdf
PINTUCHAUHAN8
 
HTML Training Part1
than sare
 
Ad

Recently uploaded (20)

PPT
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PPTX
Presentation about variables and constant.pptx
safalsingh810
 
PDF
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
PDF
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PPTX
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
PDF
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PPTX
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PPTX
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
PPTX
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
PPTX
Role Of Python In Programing Language.pptx
jaykoshti048
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
Presentation about variables and constant.pptx
safalsingh810
 
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
Role Of Python In Programing Language.pptx
jaykoshti048
 
Presentation about variables and constant.pptx
kr2589474
 

Xhtml

  • 1. XHTML 1. Introduction 2. First XHTML Example 3. Headings 4. Linking 5. Images 6. Lists 7. Tables 8. Forms
  • 2. • T h e E x t e n s i b l e H y p e r t e x t M a r k u p L a n g u a g e . • M a r k u p l a n g u a g e t h a t s p e c i f i e s t h e f o r m a t o f t h e t e x t t h a t i s d i s p l a y e d i n a w e b b r o w s e r s u c h a s : - M i c r o s o f t ’ s I n t e r n e t E x p l o r e r - M o z i l l a F i r e f o x . Introduction
  • 4. Elements of an XHTML document  html element - encloses the head section (represented by the head element) and the body section (represented by the body element).  the head element contains : - information about the XHTML - special document formatting instructions called style sheets and client- side programs called scripts for creating dynamic  the body element.
  • 5. Elements of an XHTML document XHTML documents delimit an element with  start tag - element name in angle brackets (e.g., <html>).  end tags - element name preceded by a forward slash (/) in angle brackets (e.g., </html>).
  • 6. Headings XHTML provides :  six headings - called heading elements, for specifying the relative importance of information
  • 8. Linking  Hyperlink - references to other resources, such as : - XHTML documents - Images.  When a user clicks a hyperlink, the browser tries to execute an action associated with it (e.g., navigate to a URL, open an e-mail client, etc.).  In XHTML, both text and images can act as hyperlinks.  Links are created using the a (anchor) element.
  • 12. Images  Lines 14–15 use an img element to insert an image in the document.  The image file’s location is specified with the img element’s src attribute.  Every img element in an XHTML document must have an alt attribute. If a browser cannot render an image, the browser displays the alt attribute’s value.
  • 13. Using Images as Hyperlinks  By using images as hyperlinks, web developers can create graphical web pages that link to other resources.  Lines 14–17 create an image hyperlink by nesting an img element in an anchor (a) element.
  • 14. Lists  The unordered list element ul creates a list in which each item begins with a bullet symbol (called a disc).  Each entry in an unordered list (element ul in line 17) is an li (list item) element (lines 19–22).  Most web browsers render each li element on a new line with a bullet symbol indented from the beginning of the line.
  • 15. Lists
  • 16. Nested Lists  Lists may be nested to represent hierarchical relationships, as in an outline format.  Figure demonstrates nested lists and ordered lists.  The ordered list element ol creates a list in which each item begins with a number.
  • 19. Tables  Tables are frequently used to organize data into rows and columns.  Tables are defined with the table element (lines 15–62). Lines 15–17 specify the start tag for a table element that has several attributes.  The border attribute specifies the table’s border width in pixels. To create a table without a border, set border to "0".  This example assigns attribute width the value "40%" to set the table’s width to 40 percent of the browser’s width..  As its name implies, attribute summary (lines 16–17) describes the table’s contents.
  • 21.  A table has three distinct : 1. The head section - is defined with a thead element (lines 25–30), which contains header information such as column names. Each tr element (lines 26–29) defines an individual table row.  The columns in the head section are defined with th elements. Most browsers center text formatted by th (table header column) elements and display them in bold.  Table header elements are nested inside table row elements (lines 27–28).
  • 22. 2. The body section - contains the table’s primary data.  The table body (lines 43–60) is defined in a tbody element.  In the body, each tr element specifies onerow.  Data cells contain individual pieces of data and are defined with td (table data) elements in each row.
  • 23. 3. The foot section (lines 34–39) is defined with a tfoot (table foot) element.  the foot section can contain table rows, and each row can contain cells.  Cells in the foot section are created using th elements, instead of the td elements used in the table body.
  • 24. Forms  XHTML provides a mechanism, called a form, for collecting data from a user.  Forms can contain : 1. Visual components – include clickable buttons and other graphical user interface components with which users interact.  Nonvisual components, called hidden inputs, store any data that you specify, such as : - email addresses - XHTML document filenames that act as links.
  • 26. Bibliography  Internet & World Wide Web How to Program , Fourth Edition ,P&H Deitel .