/    Sign up×
Community /Pin to ProfileBookmark

How different browsers react

Using a free editor (TopDawg) I am trying to teach myself a little about HTML.
I am still very raw so any replies please address to an idiot.
I created my first site and asked for it to be reviewed(see that forum) and my eyes were opened to a lot of the pit falls, mainly that all seems to work using IE but not others browers.
I got many,many suggestion how to improve my site but haven’t attempted to change much yet as I am still getting to grip with basic coding.
The sort of thing I notice is that with IE when the cursor hovers over an image the alternate title is display but not the idtentical coding with NetScape.
How do I get round this very simple prob please?

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@CharlesJul 10.2005 — By following the standards. It is a common misunderstanding that HTML is "how browsers work". In reality it's its own free standing language for describing how the parts of a document fit together. Browsers are supposed to follow the standards, and for the most part they do, but they are given a great deal of freeplay. In other words, pages are supposed to render differently in different browsers.

But consider the "alt" attribute. It's there to provide alturnative text for images. On an audio, Braille or text-only browser the image cannot be displayed so the "alt" text will be substituted. MSIE exends this and displays it as a "tool-tip". If you just follow the MSIE's behavior you would never figure out what the "alt" is for. But if you read the HTML 4.01 specification you would. And you would never find out that there is also a "title" attribute that is supposed to be rendered as a "toop-tip".

Do not try to learn HTML from an HTML editor and do not try to learn it by playing around. Read the following documents in the following order:

http://www.w3.org/MarkUp/Guide/

http://www.w3.org/TR/REC-html32

http://www.w3.org/TR/html401/

http://www.w3.org/MarkUp/Guide/Style

And if you must use an HTML generator, there is only one the produces real HTML or XHTML. See http://www.w3.org/Amaya/ .
Copy linkTweet thisAlerts:
@ulillilliaJul 10.2005 — IE is "smart". It can pick out minor mistakes and make "fixes" for improper HTML coding like forgetting the # when defining colors as in color="#ffc000" and the such. Other browsers, like Firefox, follow the rules exactly and aren't "smart". You'll need to stick with the standards. View and edit your site in Firefox. This way, you can see things correctly and fix problems. Firefox is free. I'm unfamiliar with Netscape, I practically never use it or see it.

Also, free software isn't all that reliable. I use Wordpad (it comes with Windows) to edit my site as Notepad's limit of 32 KB causes problems for a few of my pages which get to even 50 KB.
Copy linkTweet thisAlerts:
@felgallJul 10.2005 — I use Wordpad (it comes with Windows) to edit my site as Notepad's limit of 32 KB causes problems for a few of my pages which get to even 50 KB.[/QUOTE]

Sounds like your pages are on the HUGE side. Why not split them into multiple pages. 40k is a good target maximum size for web pages (including all images) and certainly they should never go over 80k if you expect people to see them.
Copy linkTweet thisAlerts:
@ulillilliaJul 11.2005 — They are split into multiple pages. 50 KB isn't all that bad. Almost all of that is readable text, not HTML formatting or any scripting. Throughout at least 95% of my site, at least 80% of the disk space is from HTML files, not pictures. In fact, if you click a link, you'd be able to see the text of the linked document in under a second, even on dial-up, provided the transfer is successful (server isn't bogged down and the line has no trouble (such as static), and the end user's computer isn't bogged down either (as from spyware or a virus scan)).
Copy linkTweet thisAlerts:
@SpectreReturnsJul 11.2005 — IE is "smart". It can pick out minor mistakes and make "fixes" for improper HTML coding like forgetting the # when defining colors as in color="#ffc000" and the such. Other browsers, like Firefox, follow the rules exactly and aren't "smart".[/QUOTE]

Actually, FF seems to display everything IE does, and more, like FF will put in missing > tags, where as IE will die.
×

Success!

Help @MikeG spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...