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
PDF
HTML language and all its tags .....
PPTX
HTML Introduction
PPTX
Empowerment Technologies Lecture 10 (Philippines SHS)
PPTX
Computer fundamentals-internet p2
PPTX
Xml For Dummies Chapter 4 Adding Xhtml For The Web
DOCX
What is html xml and xhtml
PPT
Week 2
Xhtml
HTML language and all its tags .....
HTML Introduction
Empowerment Technologies Lecture 10 (Philippines SHS)
Computer fundamentals-internet p2
Xml For Dummies Chapter 4 Adding Xhtml For The Web
What is html xml and xhtml
Week 2

What's hot (20)

PDF
Vskills certified html designer Notes
PDF
Introduction to XHTML
PPTX
DOCX
CLASS VII COMPUTERS HTML
PPTX
HTML 5 Topic 2
PDF
HTML - part 1
PPSX
PPTX
Introduction to html fundamental concepts
PPTX
Web Application and HTML Summary
PPTX
HTML5 Topic 1
PPT
HTML Introduction
PPTX
Final by smit parekh
PPT
Diva
PPT
Html book2
ODP
PPTX
WEB PAGE DESIGN USING HTML
PPT
Tutorial 08 - Creating Effective Web Pages
PDF
Wp unit 1 (1)
PPT
Tutorial 8 - Creating Effective Web Pages
 
Vskills certified html designer Notes
Introduction to XHTML
CLASS VII COMPUTERS HTML
HTML 5 Topic 2
HTML - part 1
Introduction to html fundamental concepts
Web Application and HTML Summary
HTML5 Topic 1
HTML Introduction
Final by smit parekh
Diva
Html book2
WEB PAGE DESIGN USING HTML
Tutorial 08 - Creating Effective Web Pages
Wp unit 1 (1)
Tutorial 8 - Creating Effective Web Pages
 
Ad

Similar to Xhtml (20)

PDF
Web Design & Development - Session 4
PDF
web designing blogger html codes
PDF
Chapter 2 - HTML5.pdf
PPT
Day Of Dot Net Ann Arbor 2007
PDF
SessionTen_CaseStudies
PPT
Higher Computing Science HTML
PPTX
Web design - Working with Text and Lists in HTML
DOC
Data Structure
PDF
Introduction to Data Structure
PPTX
PPT
1597380885789.ppt
PPTX
Basic xml syntax
PPT
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
PPTX
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
PPT
Organizing Content with Lists and Tables
PPTX
Web design slides.pptx for university student
PDF
PPT-203105353-1.pdf
PPTX
HTML Training Part1
Web Design & Development - Session 4
web designing blogger html codes
Chapter 2 - HTML5.pdf
Day Of Dot Net Ann Arbor 2007
SessionTen_CaseStudies
Higher Computing Science HTML
Web design - Working with Text and Lists in HTML
Data Structure
Introduction to Data Structure
1597380885789.ppt
Basic xml syntax
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
Organizing Content with Lists and Tables
Web design slides.pptx for university student
PPT-203105353-1.pdf
HTML Training Part1
Ad

Recently uploaded (20)

PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
assetexplorer- product-overview - presentation
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
top salesforce developer skills in 2025.pdf
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
System and Network Administration Chapter 2
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Nekopoi APK 2025 free lastest update
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
L1 - Introduction to python Backend.pptx
Which alternative to Crystal Reports is best for small or large businesses.pdf
assetexplorer- product-overview - presentation
CHAPTER 2 - PM Management and IT Context
Reimagine Home Health with the Power of Agentic AI​
Wondershare Filmora 15 Crack With Activation Key [2025
top salesforce developer skills in 2025.pdf
Digital Systems & Binary Numbers (comprehensive )
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
System and Network Administration Chapter 2
Design an Analysis of Algorithms I-SECS-1021-03
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Softaken Excel to vCard Converter Software.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Odoo POS Development Services by CandidRoot Solutions
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Computer Software and OS of computer science of grade 11.pptx
Nekopoi APK 2025 free lastest update
Why Generative AI is the Future of Content, Code & Creativity?
L1 - Introduction to python Backend.pptx

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 .