Register  |  Login Retro Game Room  |  Board  |  Downloads  |  Memberlist  |  Video Game Room Staff  |  About Us  |  Help Center  
  Views: 1,275,268,378     10-25-14 01:59 AM  

Need Some Coding Help




Thread closed

Need Some Coding Help
Add to favorites | "RSS" Feed | Next newer thread | Next older thread

Posted on 02-08-12 07:37 PM BNuge is Offline     Post: 146 words - Spell checked - (ID: 541118) - Post Rating: 0 - Report Abuse | Link
BNuge
Level: 116


POSTS: 4685/5673
POST EXP: 363623
LVL EXP: 17294595
CP: 5915.1
VIZ: 653832
legacyme3 :
the_casualty :
Lazlo Falconi :
JigSaw :

I had to code a page for my Programming class. I know the coding is good and my brother checked it and agreed. He has an Associate's Degree in Game Programming and already took the class I'm in. Yet she has a site that she has us use to check the code.

http://validator.w3.org/#validate_by_upload

The site checks it as "XHTML 1.0 Strict." It rejected most of my tags and attributes. I don't get what I did wrong. I double checked with my professor. She said, "The reason that the validator picked your tags up as errors is because there are alternative "accepted" tags to what you have attempted to code onto your page."

So I decided I might as well ask if anyone here has any tips. I can PM my code to anyone who wants to help?

(last edited by BNuge on 02-08-12 07:40 PM)


Third Place in Feb 2011 VCS Achieved Ravering Syndrome + on Jan 6, 2012
Affected by 'Laziness'

Position: Elite
Since: 04-30-10
From: Northeast US
Last Post: 152 days
Last Active: 89 days

Sponsor

Posted on 02-08-12 08:43 PM Lazlo Falconi is Offline     Post: 38 words - (ID: 541134) - Post Rating: 0 - Report Abuse | Link
Lazlo Falconi
Level: 78


POSTS: 717/2643
POST EXP: 189945
LVL EXP: 4341832
CP: 2596.5
VIZ: 131963
Yeah I'll help you. Likely if the problem is that it's running the test for XHTML STRICT and you used "alternative" tags, it's just a DTD error. PM me the code and I can probably help ya out.

Exeggcute
CHAMPION
Hit Ravering Syndrome on March 24th 2012
Affected by 'Laziness'

Position: Elite
Since: 01-07-12
From: Cartoon Hell
Last Post: 9 days
Last Active: 6 days

Posted on 02-09-12 12:22 AM the_casualty is Offline     Post: 130 words - (ID: 541199) - Post Rating: 0 - Report Abuse | Link
the_casualty
Level: 116


POSTS: 5684/5805
POST EXP: 223508
LVL EXP: 17049992
CP: 800.6
VIZ: 59444
As the name suggests, XHTML Strict is, well, strict. It's the old bitty English teacher of doctypes. Tons of properties are considered "deprecated" (font, center, among tons of others). Try running it under XHTML 1.0 Transitional and see if you get the same or similar results.

Running it through HTML Tidy would work swell too. It fixes up your pages to the "standards". That said, watch out, because if the code is in bad shape Tidy will appear to "alter" the page's layout in an attempt to make it standards compliant.

Also, do you mind putting the code of the page into Pastebin and posting it here so I among others can analyze it and attempt to fix it?

That is, unless Lazlo has already done the job for you.

Cerebus
Timecube
Affected by 'Laziness'

Position: Elite
Since: 09-30-10
From: Vizzed, #thecasualty
Last Post: 181 days
Last Active: 48 days

Posted on 02-09-12 12:07 PM BNuge is Offline     Post: 57 words - Spell checked - (ID: 541275) - Post Rating: 0 - Report Abuse | Link
BNuge
Level: 116


POSTS: 4690/5673
POST EXP: 363623
LVL EXP: 17294595
CP: 5915.1
VIZ: 653832
the_casualty :

I PM'd the code to home, but haven't heard back. I'm on a school computer now, so I don't have access to my code.

We don't have an option of which form of code we get to run it through. She requires that we use Strict XHTML AND she checks it herself when we submit it.


Third Place in Feb 2011 VCS Achieved Ravering Syndrome + on Jan 6, 2012
Affected by 'Laziness'

Position: Elite
Since: 04-30-10
From: Northeast US
Last Post: 152 days
Last Active: 89 days

Posted on 02-09-12 07:20 PM Lazlo Falconi is Offline     Post: 30 words - (ID: 541372) - Post Rating: 0 - Report Abuse | Link
Lazlo Falconi
Level: 78


POSTS: 718/2643
POST EXP: 189945
LVL EXP: 4341832
CP: 2596.5
VIZ: 131963
Well, right off the bat I can tell you one thing. You're using HTML 4.0. XHTML Strict does NOT allow for the bgcolor attribute. Change your body tag to
[code]
...Actually, it would take far too long to go through this whole thing, but when you put it through the validator, doesn't it tell you what's wrong?

At first, I would say change your Doctype to HTML 4.0...but if you're not allowed to do that, I would guess you're supposed to be learning XHTML, but then, why hasn't your instructed taught you CSS? Something seems a bit odd here.

To be honest with you, I don't know why she would even have you use the STRICT dtd to begin with. It's awful. Nobody uses it, because it's just a pain in the zebra to code. If you want, I suppose I can go through and tell you how to alter everything from HTML to XHTML... But it would take a long, long time, and I think that may be the point of the exercise.

I'm sorry.

Exeggcute
CHAMPION
Hit Ravering Syndrome on March 24th 2012
Affected by 'Laziness'

Position: Elite
Since: 01-07-12
From: Cartoon Hell
Last Post: 9 days
Last Active: 6 days

Posted on 02-09-12 08:47 PM BNuge is Offline     Post: 87 words - Spell checked - (ID: 541397) - Post Rating: 0 - Report Abuse | Link
BNuge
Level: 116


POSTS: 4695/5673
POST EXP: 363623
LVL EXP: 17294595
CP: 5915.1
VIZ: 653832
Lazlo Falconi :
the_casualty :

I actually already knocked out 27 of the 42 errors. 13 of them involved putting alt="blah blah blah" at the end of each of the images. The rest were basically saying that some tags couldn't be just floating around. They needed to be in some other tag. I put a div tag right after the body tag and that made all of those errors go away. Now I'm down to 15 and a bunch of them are based on attributes in the body tag.


Third Place in Feb 2011 VCS Achieved Ravering Syndrome + on Jan 6, 2012
Affected by 'Laziness'

Position: Elite
Since: 04-30-10
From: Northeast US
Last Post: 152 days
Last Active: 89 days

Posted on 02-09-12 08:49 PM Lazlo Falconi is Offline     Post: 13 words - (ID: 541398) - Post Rating: 0 - Report Abuse | Link
Lazlo Falconi
Level: 78


POSTS: 720/2643
POST EXP: 189945
LVL EXP: 4341832
CP: 2596.5
VIZ: 131963
Change them to CSS. w3schools has a bunch of good tutorials on CSS.

Exeggcute
CHAMPION
Hit Ravering Syndrome on March 24th 2012
Affected by 'Laziness'

Position: Elite
Since: 01-07-12
From: Cartoon Hell
Last Post: 9 days
Last Active: 6 days

Posted on 04-15-12 04:08 AM catfight09 is Offline     Post: 19 words - (ID: 567950) - Post Rating: 0 - Report Abuse | Link
catfight09
Level: 80


POSTS: 1217/2327
POST EXP: 74331
LVL EXP: 4608262
CP: 322.8
VIZ: 43004
Thanks man. I'll be sure to check this site out as I've got just about no layout experience whatsoever.

Larry Koopa
Final Fantasy XIII player
Affected by 'Laziness'

Position: Trusted
Since: 03-14-10
Last Post: 364 days
Last Active: 57 days
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Vizzed Board - Computer / Programming / Technology - Coding and Design
Need Some Coding Help
| | Thread closed

  Site Info  Sponsor  
  Vizzed.com © was created, designed, coded by & is property of:
David Auchampach
All Rights Reserved 2002 - 2014
Powered By: Vizzed Board, Acmlm Board and Adeon Dev.
Affiliates: get-your-rom.com - mybiblegames.com -  

Page rendered in 0.166 seconds.