| View previous topic :: View next topic |
| Author |
Message |
elireed

Joined: 22 May 2008 Posts: 4
|
Posted: Thu May 22, 2008 11:26 am Post subject: Compatability across browsers? |
|
|
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 |
|
 |
|
|
leonard 100+ Club

Joined: 18 Dec 2007 Posts: 148 Location: Switzerland
|
Posted: Thu May 22, 2008 11:43 am Post subject: Re: Compatability across browsers? |
|
|
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 |
|
 |
elireed

Joined: 22 May 2008 Posts: 4
|
Posted: Thu May 22, 2008 2:38 pm Post subject: Re: Compatability across browsers? |
|
|
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 |
|
 |
elireed

Joined: 22 May 2008 Posts: 4
|
Posted: Thu May 22, 2008 2:45 pm Post subject: Re: Compatability across browsers? |
|
|
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 |
|
 |
leonard 100+ Club

Joined: 18 Dec 2007 Posts: 148 Location: Switzerland
|
Posted: Thu May 22, 2008 2:54 pm Post subject: Re: Compatability across browsers? |
|
|
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 |
|
 |
elireed

Joined: 22 May 2008 Posts: 4
|
Posted: Thu May 22, 2008 2:57 pm Post subject: Re: Compatability across browsers? |
|
|
Thanks... that looks useful
I love Firefox  |
|
| Back to top |
|
 |
|