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

11y 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 do humans see different wavelengths of light?

As different colors.As different colors.As different colors.As different colors.


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.


Why different people have different needs?

Different people have different needs due to a combination of factors such as genetics, upbringing, environment, culture, and personal experiences. These factors can shape an individual's physical, emotional, social, and cognitive needs, leading to unique requirements for each person. Additionally, individual preferences and values also play a role in determining what each person considers essential for their well-being and fulfillment.


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.