|
|
|
|
|
|
|
|
|
|
|
|
|
|
The <!DOCTYPE> tagThe <!DOCTYPE> tag is the first tag that appears on a document even before the <html> tag. It tells the browser which type of document is in use. In html, there are 3 types of declarations: Transitional DTD: Is used when you don't nescessarly use style with CSS (Cascading Style Sheets) or suspect that your viewers are not using browsers that support CSS. It allows you to write your code more like you want without having to put formating and etc in a CSS file. So, the first line of code that would appear on your document is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Strict DTD: If you are using CSS (Cascading Style Sheets) and styling and formating everything in a CSS file, if you are using clean and strict coding: like the newer way of ending some tags "... />", then Strict DTD is more suitable. The first line of code that would appear on your document is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Frameset DTD Frameset DTD is the same as Transitional DTD but used if you are using frames in your document. The first line of code that would appear on your document is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> In a document it should look like this:
The above is an exemple using Transitional DTD. Notice also that nothing has to be modify in the code to fit on your web page; I mean that you don't replace the web address in the code to fit your web page. You leave it the way it is. |
Tag list<!--comment--> |
|
|
Home - Content - Domain Name - Free Host - Host - Web Design - HTML - Tools - Advertise
Google - ClickBank - Affiliate - AdSense - AdWords - Merchant Account - Glossary - Links
This site is not in anyway affiliated
with any
of the companies mentionned
Copyright © 2006 -
moneyXtreme.com -
All Rights Reserved.