Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: incrediBILL
Different doctypes declare different sets of tags as valid; and (with quirks mode) prompt some browsers into rendering some tags in different ways.
Full list of recommended doctypes here:
I suggest you start with a low numbered transitional type. Validate some pages with that dotype to get an idea of how well your HTML matches it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
If you add that and the page layout goes all wrong, then use this instead:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Then use the HTML validator [validator.w3.org] and work your way through the validation errors - often by fixing one, others later on will be corrected too.
i have tried and its does match nothing?
Thing of HTML as a set of dialects. The doctype says which of the dialects you are using. If you are not using any of the standard dialect variations, then your choices are:
1. be happy with unvalidated HTML -- ie HTML that does not match any given dialect
2. modidy your HTML to match one of the existing dialects. Then you can use that one's doctype
3. write your own doctype. This really only works if you HTML is well-formed (if it is full of syntax errors then you'll never match any doctype). Writing a DTD to precisely describe how your HTML is structured offers the ultimate degree of control.
i need to declar a doc type in my web pages, currently i used html, asp in my pages, so what doctype should i place in my site?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
The first allows you to use tags and attributes that have been declared deprecated (i.e. font, s, strike, u, basefont, center, applet and etc.). The second doctype does not. Even if you stick with the transitional doctype, it is generally best that you avoid the depreciated tags and attributes as much as possible.
The full doctype is recommended because it will force certain browsers, especially IE6, into standards mode. This mode corrects some of the errors that IE6 has when it comes to rendering CSS.
Using & instead of & in your links will not affect the links themselves.
Error Line 172 column 47: an attribute value must be a literal unless it contains only name characters.
...ect name="Make" onchange=make1.submit() size="1" style="width: 135; font-fami
its telling there is a problem with ()