[XML][XHTML Tutorial, tutorialspoint.com].pdf
(
963 KB
)
Pobierz
XHTML
i
XHTML
About the Tutorial
This tutorial provides a basic understanding of XHTML, its syntax and attributes
with rules for using the same along with their practical examples. It also describes
Doctypes, attributes and events of XHTML. In addition, it provides a few handy
tips and tricks of using XTHML.
Audience
This tutorial is designed for the aspiring web designers and web developers who
are keen to understand XHTML in detail. Enthusiastic readers can use this tutorial
as a source of additional reading.
Prerequisites
Before proceeding with this tutorial, you need to have a basic knowledge of
working on Windows or Linux. You need to be familiar with any of the text editors
such as Notepad, Notepad++, or Editplus. You are also required to work with
browsers such as IE, Firefox, or Google Chrome, comfortably.
Disclaimer & Copyright
Copyright 2015 by Tutorials Point (I) Pvt. Ltd.
All the content and graphics published in this e-book are the property of Tutorials
Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy,
distribute or republish any contents or a part of contents of this e-book in any
manner without written consent of the publisher.
We strive to update the contents of our website and tutorials as timely and as
precisely as possible, however, the contents may contain inaccuracies or errors.
Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy,
timeliness or completeness of our website or its contents including this tutorial. If
you discover any errors on our website or in this tutorial, please notify us at
contact@tutorialspoint.com.
i
XHTML
Table of Contents
About Tutorial ........................................................................................................................................ i
Audience ................................................................................................................................................ i
Prerequisites .......................................................................................................................................... i
Disclaimer & Copyright ........................................................................................................................... i
Table of Contents .................................................................................................................................. ii
1.
XTHML INTRODUCTION ..................................................................................................... 1
Why Use XHTML? .................................................................................................................................. 1
Basic Understanding .............................................................................................................................. 2
2.
XHTML SYNTAX .................................................................................................................. 3
DOCTYPE Declaration ............................................................................................................................ 3
Case Sensitivity ...................................................................................................................................... 3
Closing the Tags ..................................................................................................................................... 4
Attribute Quotes ................................................................................................................................... 4
Attribute Minimization .......................................................................................................................... 5
The
id
Attribute ..................................................................................................................................... 5
The
language
Attribute ......................................................................................................................... 6
Nested Tags ........................................................................................................................................... 6
Element Prohibitions ............................................................................................................................. 7
A Minimal XHTML Document ................................................................................................................ 7
3.
HTML VERSUS XHTML ........................................................................................................ 8
XHTML Documents Must be Well-Formed ............................................................................................... 8
Elements and Attributes Must be in Lower Case ...................................................................................... 8
End Tags are Required for all Elements ................................................................................................... 8
Attribute Values Must Always be Quoted.............................................................................................. 9
Attribute Minimization .......................................................................................................................... 9
ii
XHTML
Whitespace Handling in Attribute Values .............................................................................................. 9
Script and Style Elements ...................................................................................................................... 9
The Elements with
id
and
name
Attributes .......................................................................................... 10
Attributes with Pre-defined Value Sets................................................................................................ 10
Entity References as Hex Values .......................................................................................................... 10
The <html> Element is a Must ............................................................................................................. 10
4.
XHTML DOCTYPES ............................................................................................................ 12
XHTML 1.0 Strict .................................................................................................................................. 12
XHTML 1.0 Transitional........................................................................................................................ 12
XHTML 1.0 Frameset............................................................................................................................ 13
5.
XHTML ATTRIBUTES ......................................................................................................... 14
Core Attributes .................................................................................................................................... 14
Language Attributes ............................................................................................................................ 14
Microsoft Proprietary Attributes ......................................................................................................... 14
6.
XHTML EVENTS ................................................................................................................ 16
The <body> and <frameset> Level Events ............................................................................................ 16
The <form> Level Events ...................................................................................................................... 16
Keyboard Events .................................................................................................................................. 17
Other Events ........................................................................................................................................ 17
7.
XHTML VERSION 1.1......................................................................................................... 19
Document Conformance ...................................................................................................................... 19
XHTML 1.1 Modules ............................................................................................................................ 20
Changes from XHTML 1.0 Strict ........................................................................................................... 22
8.
XHTML TIPS AND TRICKS .................................................................................................. 23
Tips for Designing XHTML Document ................................................................................................... 23
Inside the XHTML Document ............................................................................................................... 23
iii
XHTML
9.
10.
XHTML VALIDATION ......................................................................................................... 25
XHTML SUMMARY ........................................................................................................... 26
Converting HTML to XHTML ................................................................................................................ 26
XHTML Upcoming Versions .................................................................................................................. 26
iv
Plik z chomika:
nimtiz
Inne pliki z tego folderu:
[HTML][HTML5 Canvas. Graphics. Animation and Game Development].pdf
(29804 KB)
[CSS][CSS3 Foundations].pdf
(23466 KB)
[JAVASCRIPT][Professional AngularJS].pdf
(21169 KB)
[HTML][HTML5 Foundations].pdf
(32597 KB)
[JAVASCRIPT][Beginning JavaScript Charts].pdf
(19671 KB)
Inne foldery tego chomika:
Books
Fruity Loops
Prywatne
Virtual Machines
Workout Books
Zgłoś jeśli
naruszono regulamin