Screen Printing

TUTORIALS » HTML / JavaScript » HTML essentials (guided tutorials)

XHTML vs HTML

Page 4 of 6


The <head> section

<!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/1999/xhtml" lang="en">

<head>
   <title>Title of the document</title>
</head>

<body>
   Contents of the document
</body>

</html>
The
<head>
tag defines all the information that needs to be processed by the browser but not displayed inside the actual page like the title of the page, the keywords and description needed by search engines for the page to be indexed, and other pieces of information we will learn later on.

Here you can add the
<title>
tag to define the title of your web page. This title will be displayed on the top of your browser's window.

More pages of this tutorial → XHTML vs HTML  <123456>

Comments & Questions