HTML or XHTML

L

laura

Hi,

I use FrontPage 2000 and Windows XP. I have been looking into CSS (Style
Sheets) and following tutorials. I notice that I could be using HTML or
XHTML. How do I know which I am using when I create my web pages with
FrontPage? Why doesn't FP add the line at the top of the pages:-

<!DOCTYPE HTML PUBLIC..... ... > etc? What should be there and should it be
added manually?

Laura TD
 
L

Lisa Wollin \(Microsoft\)

FrontPage doesn't add it by default because the application doesn't know
what type of document you are creating. You can certainly add it. It's
very useful information for the browser when displaying your web pages.
However, be aware that different doctype declarations can cause your pages
to display differently. The doctype declaration can be added at any point
during a page's life, but it's most helpful to add the doctype declaration
before you start coding your page. That way you can specifically adhere to
the rules for your chosen doctype.

There are many resources for determining which doctype to use. Here are a
few links, some for HTML and some for both HTML and XHTML. If you do a
Google search, I'm sure you will find many more.

http://www.blooberry.com/indexdot/html/tagpages/d/doctype.htm
http://www.htmlhelp.com/reference/html40/html/doctype.html
http://www.alistapart.com/articles/doctype/
http://developer.apple.com/internet/html/doctype.html

You can also locate the doctypes for specific HTML specifications from the
w3c.org Web site.

--
Lisa Wollin
Programmer Writer
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top