if i place
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> at the very top of my html code,
do i need to add the meta tag charset=ISO-8859-1?
if i place
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> at the very top of my html code,
do i need to add the meta tag charset=ISO-8859-1?
Never Go Faster than Your Guardian Angel
lawrence dieter dc
dc vacation relief
www.drbackman.com
(800)797-2457
Yes... the DOCTYPE just tells the browser the rules for the webpage, what kind of javascript to use, what atributes it is allowed to use. etc. The charset is the actual characters that will appear on the screen. Different languages use differnt charsets. example russian characters look much different than english characters. thus they need a different character sets.
www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.
There is something else to remember when placing the DOCTYPE tag in your HTML files. The DOCTYPE you use tells the browser what type of HTML/XHTML you are using. Most modern browsers use this for what is called doctype switching. This means the browser will diplay the exact same HTML differently depending on the doctype used. The doctype you posted in your message is incomplete, though I have seen many like it in use all over the web. This means browsers will use what they call "quirks" mode to display your page, rather than using "standards" mode. In other words, the browser assumes that your code is not standard.Originally Posted by leanbike
A complete DOCTYPE tag also includes a URI that points to the W3C's Document Type Definition for that particular level of HTML. The full doctype that you should use for HTML 4.01 Transitional is this:
For a good little article about DOCTYPE tags you might take a look at Fix Your Site With the Right DOCTYPE! at the "A List Apart" web site.Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Narasinha
- [url=http://unrelated.dexterityunlimited.com/Relatively Unrelated[/url]
It is complete and perfectly valid so :pOriginally Posted by Narasinha
Things like the filters that only IE supports only work in quirks mode.
Technically, no it's not complete (see W3C QA - List of valid DTDs you can use in your document.), so :P. But, if you really want quirks mode, I suppose it's use an incomplete or a 3.2 or 2.0 (which exclude the URI).Originally Posted by carbonize
What filters? Like using alpha-tranparency in PNG images?
- [url=http://unrelated.dexterityunlimited.com/Relatively Unrelated[/url]
No I mean filters as I have demonstrated on http://www.carbonize.co.uk/Webdesign/css.php in the section marked Internet Explorer 5.5 or later. Also it's interesting to look at the borders I demonstrate on that page in different web browsers.
Nice page! The grooved and ridged borders look darker in IE 6 than in Opera 7 for me. Did you notice that the W3C cut "text-shadow" out of CSS2 in the latest revision (2.1)? I guess the browser programmers were having trouble implementing it.Originally Posted by carbonize
I have my Opera set to display scrollbar colors, but never use them myself. I remember when I was at a Microsoft Web Developers conference and they talked about the filters. I think IE 5 was in beta at the time. For the alpha-transparency in PNG images you have to use a special filter like this one: filter:progid:DXImageTransform.Microsoft.AlphaImag eLoader. There are some other attributes as well. It's much more complicated than it should be.
- [url=http://unrelated.dexterityunlimited.com/Relatively Unrelated[/url]