Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Compatability across browsers?



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
elireed



Joined: 22 May 2008
Posts: 4

PostPosted: Thu May 22, 2008 11:26 am    Post subject: Compatability across browsers? Reply with quote

I use Firefox to display changes to the simple HTML pages I create. They are so simple they certainly should work in any browser. However, this latest page I created will not display in IE at all.

I would not care except clearly a lot of people use IE and will not be able to view the page. Presumably this is a problem with my code, or with my IE??

I have uploaded the page here http://elistest.50webs.com/john.htm and a copy of the HTML here http://elistest.50webs.com/john.txt

Thanks for any guidance
Back to top
View user's profile Send private message Send e-mail
leonard
100+ Club


Joined: 18 Dec 2007
Posts: 147
Location: Switzerland

PostPosted: Thu May 22, 2008 11:43 am    Post subject: Re: Compatability across browsers? Reply with quote

hi elireed

You should embed your code in a html-tag. If firefox would be strict, it would not display it either.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Page description</title>
</head>
<body>

->>> paste your code into here

</body>
</html>


cheers!
- leonard
Back to top
View user's profile Send private message Visit poster's website
elireed



Joined: 22 May 2008
Posts: 4

PostPosted: Thu May 22, 2008 2:38 pm    Post subject: Re: Compatability across browsers? Reply with quote

Hi.. Thanks I should have tried that - though I'm sure I've not put the html tag in before and it's worked, and certainly not the doctype.

I better do things by the book next time

I thought the HEAD and BODY tags were obsolete in the newest HTML?
Back to top
View user's profile Send private message Send e-mail
elireed



Joined: 22 May 2008
Posts: 4

PostPosted: Thu May 22, 2008 2:45 pm    Post subject: Re: Compatability across browsers? Reply with quote

Sorry - I found the error. I hadn't closed the <title> tag in the first version. Firefox doesn't mind but clearly IE does.

Otherwise, IE is able to read the html without the <html> tag (and body and head tags presumably)

Although it's good practise to....
Back to top
View user's profile Send private message Send e-mail
leonard
100+ Club


Joined: 18 Dec 2007
Posts: 147
Location: Switzerland

PostPosted: Thu May 22, 2008 2:54 pm    Post subject: Re: Compatability across browsers? Reply with quote

suggestion:

install the firefox addon "WebDeveloper"

One of many features is a syntax-checker whith which you can validate HTML and CSS:


cheers!
- leonard
Back to top
View user's profile Send private message Visit poster's website
elireed



Joined: 22 May 2008
Posts: 4

PostPosted: Thu May 22, 2008 2:57 pm    Post subject: Re: Compatability across browsers? Reply with quote

Thanks... that looks useful

I love Firefox Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap