 |
 |
getting unversal coding advice
|
 |
|
 |
|
Mac Enthusiast
Join Date: May 2000
Location: London U.K.
Status:
Offline
|
|
Are there any forums where people will look at code from a page and tell you why it won't work in different browsers and help a person in getting unversal browser coding advice?
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2002
Status:
Offline
|
|
well, on www.w3.org they have an html validator which will tell you where your code isn't valid, if you still have problems you can post it here and we'll try and find work arounds for you
--will
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2003
Location: columbus, oh
Status:
Offline
|
|
Remember: IE for Windows has its own standards so if you use CSS, don't count on more than 60% of it working. A good example is http://www.macrabbit.com/cssedit.
If you use just HTML, the W3C validator will work just fine.
|
|
"Another classic science-fiction show cancelled before its time" ~ Bender
15.2" PowerBook 1.25GHz, 80GB HD, 768MB RAM, SuperDrive
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status:
Offline
|
|
Originally posted by clam2000:
well, on www.w3.org they have an html validator which will tell you where your code isn't valid, if you still have problems you can post it here and we'll try and find work arounds for you
--will
The URL is validator.w3.org
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: May 2000
Location: London U.K.
Status:
Offline
|
|
tried it and got
I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to validate the document. The sources I tried are:
The HTTP Content-Type field.
The XML Declaration.
The HTML "META" element.
I always assumed that I was coding in html javascript and css but not to any standard
I was preparing for xml but never got round to full code is it worth doing that now will older browsers see it.
is it worth doing object sensing i.e. dependant on browser gives a different format?
sorry I am a bit confused now?
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Mar 2002
Location: Chicago, IL
Status:
Offline
|
|
The validator won't even try to check your page if it doesn't know what set of rules to check it against. You need something like this:
[php]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[/php]
(Please note that this isn't PHP but I couldn't get the code tag to work)
This is for XHTML 1.0, you may need to use something else like HTML 4.01 Transitional depending on your code.
As for the actual code, it's best to just go ahead with XHTML at this point in my opinion. OptimusG4 is correct, however, about the sketchy support for CSS2 in IE.
The reason that the Document Type Definition is so important is that it is also how a browser will decide how to display your page.
If you need more help, or can't find the right DTD online let me know, I have a book at home with pretty much any DTD from HTML 4 up.
|
We need less Democrats and Republicans, and more people that think for themselves.
infinite expanse
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
For the moment, I would sugggest coding to HTML 4.01 Transitional, actually, simply because it is the easiest one to get to when you're starting from tag-soup. That will get you up, running, and compliant relatively quickly.
As for coding advice, you might want to try Dave Raggett's tutorial at http://www.w3.org/MarkUp/Guide/. It's basic, but it gets the job done.
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: May 2000
Location: London U.K.
Status:
Offline
|
|
I put this at the top of the page and already it is looking better
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
now need to find out why slide show is not working
soory have it on my desktop while I debug it for a while
any spot its???
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: May 2000
Location: London U.K.
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|