W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2002

Re: hello sir

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Fri, 17 May 2002 08:59:52 +0000
Message-ID: <3CE4C688.5B8D9613@atmedia.net>
To: badri nath <bullsb@rediffmail.com>
CC: html-tidy@w3.org
badri nath wrote:
>                 i'am a student i have created a few web pages all
> in HTML but after hearing about XHTML now i want my pages to be
> converted to XHTMl. but i have a few doubts on XHTML.
> 1.How to save an XHTML file (e.g as .html or .xhtml)

There are no standardized extensions for any MIME type, however it is
common to store
XHTML files with a .html extension still, since that's what most servers
are configured to interpret as HTML, no matter which version.

> 2.what is the use of DTD?

In short, the DTD specifies the structure of a document, i.e. the
elements and attributes and in which context they can be used. For
example, the DTD specifies that the document element is "html", which
has two children "head" and "body". Within "head", certain elements such
as "meta", "link", "script", "style" etc. are valid, and so on.

See <URL:http://www.w3.org/MarkUp> for details on HTML and XHTML.

> 3.How to apply DTD on my pages
>    my web page url is
> http:\\www.geocities.com\everneverin\publi1.html
>   i want to know how declare in the doctype declaration because i
> have not declared doctype in my pages.

A DTD is associated with a document in the DOCTYPE, if you run your page
through HTML tidy and produce XHTML output (by using the -asxml
parameter, or the corresponding option in the configuration file), the
DTD will be added automatically for you.

Note the URL is written in correctly, the slashes should be forward
slashes, i.e. http://www.geocities.com/everneverin/publi1.html

Hope that helps

Klaus Johannes Rusch
Received on Friday, 17 May 2002 05:00:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:51 UTC