It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Compatability across browsers?

Compatability across browsers?

Postby elireed on Thu May 22, 2008 10:26 am

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
User avatar
elireed
 
Posts: 4
Joined: Thu May 22, 2008 10:20 am

Postby leonard on Thu May 22, 2008 10:43 am

hi elireed

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

Code: Select all
<!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
:%s/^M//
There are 10 kinds of people:
Those who understand binary and those who don't.
User avatar
leonard
100+ Club
 
Posts: 147
Joined: Tue Dec 18, 2007 7:11 am
Location: Switzerland

Postby elireed on Thu May 22, 2008 1:38 pm

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?
User avatar
elireed
 
Posts: 4
Joined: Thu May 22, 2008 10:20 am

Postby elireed on Thu May 22, 2008 1:45 pm

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....
User avatar
elireed
 
Posts: 4
Joined: Thu May 22, 2008 10:20 am

Postby leonard on Thu May 22, 2008 1:54 pm

suggestion:

install the firefox addon "WebDeveloper"

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

cheers!
- leonard
:%s/^M//
There are 10 kinds of people:
Those who understand binary and those who don't.
User avatar
leonard
100+ Club
 
Posts: 147
Joined: Tue Dec 18, 2007 7:11 am
Location: Switzerland

Postby elireed on Thu May 22, 2008 1:57 pm

Thanks... that looks useful

I love Firefox :)
User avatar
elireed
 
Posts: 4
Joined: Thu May 22, 2008 10:20 am


Who is online

Users browsing this forum: No registered users and 3 guests