| Webpage Tips | Metatags | Text Editor | Preview Editor | Validator | Doctypes |
|---|
The first thing you need to build a valid webpage is a Document Type Declaration (DTD). A DOCTYPE Declaration is mandatory for most current markup languages and without one it is impossible to reliably validate a document. One should place a DOCTYPE declaration as the very first thing in an HTML document.
Doctypes declare the type of Html/Xhtml document you are using to the Web browser and give the Document Type Definition (DTD) in use for the document. Declaring the doctype of your webpage also indicate to validators which specifications they should use to compare the (code) markup of the document for syntax (rules) conformity.
HTML 4.01 specifies Three Types of Doctype Definitions. Each version is governed by it's own rules so your markup must adhere to the specifications of the version you choose to write your document.
It is up to you to decide which doctype you want to use to declare the markup of your document. To me, it depends on the type of site you want to build. Site are distinguished and divided into categories based on the purpose they serve. Use the doctype that best suite your purpose. Below is a definition list of doctypes you can read to better understand how they work and what they do.
Writing a standard Xhtml doctype must also include the Namespace declaration in the opening and ending html tags. The name space is the small portion of code written just below the Doctype. Once you have chosen your doctype, you can go to the text editor and start writing your code.