Skip to main content

XHTML 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.

Example

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/TR/xhtml1" xml:lang="en" lang="en">
<head>
<title>Your Title</title>
</head>
<body>
... your contents ...
</body>
</html>

Table of Contents