Same code on multiple pages,...

User 117361 Photo


Ambassador
6,076 posts

Tim - you got the same results I got when I ran your page through the cleaner. Basically what remain in the way of errors are in fact the deprecated elements I mentioned. The css looks a bit different because it is all on the same page as your html, whereas normally it is wise to separate the css into an external file. But that is another lesson to be learned! One thing at a time hey?

Margins are still used in css but are just called that - then you decide on what you want them to be. A common margin choice for the opening body tag would be: <body style="margin: 0px auto 0px auto;"> where the 4 different values read in order - top, right, bottom and left.

You could try replacing that opening body tag in the cleaned up code with the one I have shown here and see if that gets better results.
User 2322012 Photo


Registered User
65 posts

I tried posting a response here a few hours ago, but apparently the CoffeeCup site was down as I could not access it for hours. Odd indeed. Anyway, the tag suggestion you gave me worked and the cleaner is awesome. A great way to start learning CSS. There are still a few errors, but I'm not sure they are correct if I even understand them. There is no open <tr> tag without being closed.

Line 98, Column 5: unclosed start-tag requires SHORTTAG YES
<tr>
?

The construct <foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers.

Every site I've looked at uses the <tr> and </tr> tags.

Either way, I have a renewed interest in CoffeeCup Editor with the clean up option

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.