This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XHTML
The XHTML <dl> Tag
The XHTML <div> Tag
The XHTML <dd> Tag
The XHTML <comment> Tag
The XHTML <colgroup> Tag
The XHTML <col> Tag
The XHTML <caption> Tag
The XHTML <button> Tag
The XHTML <br> Tag
The XHTML <body> Tag
The XHTML <blockquote> Tag
The XHTML <bdo> Tag
The XHTML <base> Tag
The XHTML <area> Tag
The XHTML <address> Tag
The XHTML <abbr> and <acronym> Tags
The XHTML <a> Tag
Wrapping several generated XHTML pages inside one reusable XHTML frame
<< XALAN
XML DOM >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :1127

 

The <!DocType> Tag (XHTML Reference)

Introduction

A document type contains a set of rules for the XHTML file. A XHTML file can be only valid if you specify the document type to use. The XHTML file need then to follow the rules, which are defined in the document type, otherwise it won’t be valid.

These rules defines for example which attributes a specific tag can use or should contain or whether the attribute is a must or just optional. All these rules are defined in the document type. You may think that these rules aren’t really necessary, but these rules are very important, because without the rules the XHTML language would be useless.

Just imagine if everybody would write down any tags with any attributes or any values. The result would be that nobody would understand what somebody has written before. You can mirror this example to the English grammar, if everybody would create a sentence without using the rules, then nobody will understand it.

Examples

Here is what a DOCTYPE tag looks like:

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

     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


You have to insert the DOCTYPE tag before the <html> tag starts.

Construction

Name:

Description:

DOCTYPE html PUBLIC

This means that we using the public available DTD.

en

This is the language we are using. Here are some other codes:
de = German
en = English
en-us  = English (USA)

en-uk = English (UK)

es = Spanish

fr = French
it = Italian

strict

This means that we do not want to use elements or attributes which aren’t used anymore or which are replaced with CSS.

W3C

This is the publisher of the DTD.

XHTML 1.0

This is the version we want to use.

Furthermore it also includes the URL of the DTD. This is optional and not really necessary.

Strict can be also replaced with Transitional and FrameSet. Transitional indicates that you want to use elements and attributes which were used in old versions of the DTD. FrameSet is used only for files which contains frames.


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP