View Full Version : More help with DOCTYPE needed
Ben@WEBProp
07-01-2003, 11:05 PM
So now that I have all of my doctypes entered, I ran it through that validator thing. It came up with over 1200 errors for one of my pages! The worst part is, I can't figure out what it's trying to tell me! http://validator.w3.org/check?uri=http%3A%2F%2Fwww.webpropertiesinc.com%2FFloorPlans%2FRPFloorPlans.htm&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1
go there and see what I mean! If anyone can help me out on ways to fix any of these, I would be very grateful!
On the first one, I think it just wants <script> to be <script language="JavaScript"> or something. I'm afraid to change it though, the validator might yell at me again! As for the others, I don't even think the explanations are in English! I know a little bit of spanish, chinese, and japanese, but it's not in those either! Please Help!
-Ben
bradyj
07-02-2003, 12:08 AM
You might have a record there:D
Alright -- Most of the errors are because you are not using CSS to do styles like bold and all that. HTML styles are no longer in use -- they work, but they aren't in use any further (deprecated is the term).
This would be a huge task, but there are things that will do it for you. HTML Tidy might be the answer:
http://download.com.com/3000-2048-2842572.html
You can dowload it there.
It has an option to 'force tags to CSS' that will take out all that junk and turn it into CSS styles. It will also clean up all those tables you have left open, and tags you have left open.
I see that script tag they are talking about -- It looks as though you didn't specify the type of script and then close it (The CSS one is fine). I can't get to your webpage though to view the source because the Javascript and Frames are messing up in my Mac. I'll have to take a look later or see if someone else here can help out.
oracleguy
07-02-2003, 12:24 AM
For the script tag, it wants the type decleration.
e.g.
<script language="javascript" type="text/javascript">
You need to do something similar for the style tag,
<style type="text/css">
oracleguy
07-02-2003, 12:33 AM
Also, what is the point of having that no right click script in there? They aren't worth the space to have them in there.
Look in the General Web Building forum, one of the stickys has a huge thread about them.
Hide any closing tags like '</td>' that are within document.write statements by escaping them <\/td> and the validator will no longer complain about these closing tags.
No such tag as <big> or </big>.
You dont actually have a page of HTML to validate. You only have a page that is mainly javascript.
Ben@WEBProp
07-02-2003, 12:53 AM
BradyJ- How do I use that Tidy program? Im lost!
OracleGuy- The reason for the no right click script was a security bug. I had a password script that if the password was wrong, it sent you back 1 page. however, if you did a right click and opened the page in a new window, there would be no history to be sent back through. You would then gain acess to the page. The content there isn't that important, but it was important to my employer that no easy breakthroughs would be possible. Basicaly, I have revamped the password script to send you forward to the homepage, and I just haven't gotten around to removing those scripts yet.
Giz- Are you sure that <big> is not a tag, or do you mean that it is a depreciated tag? I will validate the tables on their beta page and then insert them into the script.
Thanks!
-Ben
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.