answersLogoWhite

0


Best Answer
DOCTYPEsThe DOCTYPE goes before the opening HTML tag at the top of the page and tells the browser whether the page contains HTML, XHTML, or a mix of both, so that it can correctly interpret the markup. There are three main DOCTYPEs that let the browser know what kind of markup it is dealing with:

1. Strict: This means that all markup codes within the page is XHTML-compliant.

2. Transitional: This means that markup is a mix of XHTML and deprecated HTML. Many sites are currently using this one so that their old HTML code will work in addition to the XHTML code they are adding.

3. Frameset: This is about the same as transitional except in this case frames, which are deprecated under XHTML, are okay, too.

Note: Because of the word wrapping format on this website, there is actually only a space between the EN" and "http:// instead of a new line.

It is important to specify a DOCTYPE. Browsers that don't see a DOCTYPE in the markup assume that the site page was coded for browsers developed long before Web standards.

Without a DOCTYPE, many browsers go into what is known as Quirks mode. Quirks mode is a backwards-compatibility feature supported by Mozilla, internet Explorer 6 for Windows, and Internet Explorer 5 for Macintosh. In Quirks mode, the browser functions as if it has no knowledge of the modern DOM (document object model), and acts as though it has never heard of Web standards. This ability to switch modes depending on the DOCTYPE, or lack thereof, enables browsers to do the best possible job of interpreting the code of both standards-compliant and non-compliant sites, and thus may not interpret and display your webpages properly.

Note: For some weird reason, the DOCTYPE tag does not need to be closed with a backslash and DOCTYPE is always in caps. This entirely contradicts XHTML rules. Go figure.

Thanks for sharing this information ...

User Avatar

Wiki User

โˆ™ 12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the different doctypes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the versions of HTML?

The currently used ones are HTML 4.01, XHTML 1.0 or 1.1, and HTML5. XHTML has several doctypes available, which are sorta like mini-versions.


What is the adjective for different?

different is an adjective


How is Italy different from US?

they have different money,different clothing,different food,different transport,and different languages.


How are different groups of vertebrates similar and different?

it is different by being different.


How are they northern Europe states are different?

Every country is different. There are different laws, different people, different cultures, different languages, etc.


What is the interest?

The rate of interest is different in different countries, for different amounts, for different periods, for different purposes, from different lenders, for different borrowers and so on. You need to be more specific.


What is the fomulae for energy?

There are different formulae for calculating different kinds of energy.There are different formulae for calculating different kinds of energy.There are different formulae for calculating different kinds of energy.There are different formulae for calculating different kinds of energy.


What is the difference between India and England?

Different countries, different languages, different government, different money, different climate, different foods.


Where do fish breed in the sea?

Different species breed in different areas and at different depths.


Why do different liquids have different viscossities?

Different liquids are made up of different types of molecules, which have different masses, different forces between them, etc.


What religion were most ancient greek?

There was no ONE religion. Different gods served different needs and made different rules for different squabbles between different tribes in different locations at different times of different days.


How bright are the stars in constellation Gemini?

The constellation Gemini has different stars, with different brightnesses.The constellation Gemini has different stars, with different brightnesses.The constellation Gemini has different stars, with different brightnesses.The constellation Gemini has different stars, with different brightnesses.