Help - Search - Members - Calendar
Full Version: HTML code for universal browsers
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
charking1119
Windows XP IE notepad++-------
<!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"//-->
<!--html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en/--"><head><meta="http-equiv="content-type" content="text/html; charset=ISO-8859-1"/><style type="text/css"></script><script language="JavaScript" type="text/JavaScript"></script></head>
Okay my First page ( before attempting others ) looks great even validates BUT only if the DTD is inside comment tags?
Loses some formats and Mozilla even loses images,titles wrong etc;
Also I have to put the script in comments or 'BLING' 'Allow blocked content' comes up!
I leave off the dtd and just start with html but thems not the rules either!
I don't want to hear the for and against IE,Moz or about MiME and MS-DOS!
Are there some code/s that tell different browsers 'this page looks like this'???
So far so bad Charlie
pandy
QUOTE
Okay my First page ( before attempting others ) looks great even validates BUT only if the DTD is inside comment tags?


Modern browsers have 2 rendering modes. Standards (AKA Strict) and Quirks Mode. In Quirks they emulate older versions of themselves. You want Standards Mode for a lot of reasons, so rather fix the page than remove the doctype. smile.gif

http://hsivonen.iki.fi/doctype/

QUOTE
Also I have to put the script in comments or 'BLING' 'Allow blocked content' comes up!


http://www.phdcc.com/xpsp2.htm
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.