Screen Printing

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


Page 3 of 6

The <html> section

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="" lang="en">

   <title>Title of the document</title>

   Contents of the document

Both, the
and the
sections must be nested inside the

opening tag must include the mandatory xmlns attribute with the value (again, refering to the XHML standard).

opening tag can also include the optional lang attribute to define the language you will use for the contents of your web page. The language value must be a two-letter code.
   eg.     en = English     fr = French     es = Spanish

For the complete list of language codes, please refer to

Remember, although the lang attribute is optional, its proper use will greatly help search engines to index your site correctly.

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

Comments & Questions