The explanation from this tutorial are for those who already know HTML, presented in detail in previous lessons of this course.
XHTML (eXtensible HyperText Markup Language) has the same role and capabilities as HTML, it's a more advanced version of HTML, but with a slightly different syntax, more strict.
XHTML is a modern replacement for HTML, a combination between HTML and XML, it is almost identical to HTML 4.01.
The main difference that should be considered from HTML to XHTML is its syntax; all tags and attributes must be write in lowercase.
If you already know HTML, by following the rules of XHTML syntax, described below, can be said that you know XHTML too.

XHTML syntax rules

1)   For an XHTML document to be considered valid, a correct DTD must be added as the first line of the file.
A DTD (Document Type Definitions) contains the standard rules and the allowed syntax of the elements on the page.
There are three XHTML DTDs: Strict, Transitional and Frameset.
After one of these statements it should be added the code for XHTML document structure, as shown in the following example (the standard structure of an XHTML web page):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" lang="en">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Page Title</title>
<meta name="description" content="Page description" />
<meta name="keywords" content="principal, keywords, in page" />
  ... The content of page that is displayed in the Web browser.

2)   Tag names and attributes must be in lower case.
3)   Attribute values must be quoted.
4)   Unlike HTML, where elements are closed with a second tag (identical), and some do not use closing tag, in XHTML all elements must be closed and there are specific elements which have singular closing, in the same tag .
<meta ... /><meta ...>
<br /><br>
<hr /><hr>
<input /><input>
<img ... /><img ...>
- Other items, such as:   <p> </p>, <div> </div>, <span> </span>, ..., etc., are identical.

5)   In XHTML, all elements must be properly nested within each other.
6)   All attributes must have a value.
In HTML there are attributes (like "checked") which are written without any value.
Here are some of the most common:

7)   The name attribute of the <a> and <map> tags was replaced with id.

Daily Test with Code Example

Which tag create a highlighted bolded text?
<q> <strong> <em>
<p>Address: <strong></strong> - Tutorials.</p>
Which of these CSS codes displays the text bolded?
text-size: 18px; font-style: italic; font-weight: 800;
#id {
  font-weight: 800;
What JavaScript function can be used to call another function multiple times, to a specified time interval?
setInterval() setTimeout() push()
function someFunction() { alert(""); }
setInterval("someFunction()", 2000);
Click on the correctly defined variable in PHP.
var vname = 8; $vname = 8; $vname == 8;
$vname = 8;
echo $vname;

Last accessed pages

  1. Lost in a Fairy Tale (70)
  2. Various Games (648)
  3. Naruto Dress Up (38)
  4. Add data from form in text file in JSON format (6492)
  5. Paragraphs, Line break, Horizontal rule (1534)

Top accessed pages

  1. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (43888)
  2. PHP-MySQL free course, online tutorials PHP MySQL code (33288)
  3. Read Excel file data in PHP - PhpExcelReader (33148)
  4. Get Attribute (ID, Class, Name, Title, Src) with jQuery (29962)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (27281)