The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> HTML code for universal browsers, A code placed in the head but not in meta,style,script, which maintain
charking1119
post Dec 9 2008, 12:42 PM
Post #1





Group: Members
Posts: 1
Joined: 9-December 08
Member No.: 7,287



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 9 2008, 12:52 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 01:34 PM