Remove Ad, Sign Up
Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Register to Remove Ad
Register to Remove Ad
  Register  |  Login
Play Retro  |  Shop  |  Board  |  Downloads  |  Users  |  Music  |  Video Games
Staff  |  About  |  Help  
  Views: 1,898,363,556
09-28-16 07:10 PM  
On Page:
In Directory: 12 users & 28 guests
Page Staff: Minuano,
Retro Game Room
Play 10,000s of Retro Games Online
Video Game Room
Get Any Information for All Games
Video Game Music Room
Listen to Video Game Music Online
Vizzed Market
Buy & Sell Games, Codes and More!
Vizzed Board
Our Family-Friendly Community Welcomes Everyone!
Sign Up for Free
For access to more features, more games and fewer ads
Announcements
Neo Geo Music Stream = Live Now
Announcements
Neo Geo Music Stream ON Wednesday from 6-10 PM (CST) = $250 Steam Raffles!
Announcements
Summer Team Tournament Final Matchup = Results
Announcements
Summer Team Tournament Final matchup = Streamed Monday
Announcements
Autumn Minecraft Server Competition = Win 320K Viz or $320 Games

Thread Information

Views
657
Replies
7
Rating
0
Status
CLOSED
Thread
Creator
BNuge
02-08-12 07:37 PM
Last
Post
catfight09
04-15-12 04:08 AM

Thread Actions

Thread Closed




Add to favorites

 

Need Some Coding Help

 

02-08-12 07:37 PM
BNuge is Offline
Link | 146 Words

BNuge
Level: 123


POSTS: 4685/5713
POST EXP: 365339
LVL EXP: 20901628
CP: 10519.5
VIZ: 1113202

Likes: 0  Dislikes: 0
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?

Vizzed Elite
Third Place in Feb 2011 VCS Achieved Ravering Syndrome + on Jan 6, 2012


Affected by 'Laziness Syndrome'

Registered: 04-30-10
Location: Northeast US
Last Post: 548 days
Last Active: 98 days

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

Sponsor

02-08-12 08:43 PM
Lazlo Falconi is Offline
Link | 38 Words

Lazlo Falconi
Level: 86


POSTS: 717/2736
POST EXP: 198674
LVL EXP: 5945211
CP: 2990.2
VIZ: 168650

Likes: 0  Dislikes: 0
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.
Vizzed Elite
<font color=


Affected by 'Laziness Syndrome'

Registered: 01-07-12
Location: Cartoon Hell
Last Post: 1 day
Last Active: 1 day

02-09-12 12:22 AM
Nksor is Offline
Link | 130 Words

Nksor
the_casualty
Level: 123


POSTS: 5684/5846
POST EXP: 227126
LVL EXP: 20921316
CP: 1010.8
VIZ: 115470

Likes: 0  Dislikes: 0
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.
Vizzed Elite
Timecube


Affected by 'Laziness Syndrome'

Registered: 09-30-10
Location: From:
Last Post: 12 days
Last Active: 9 days

02-09-12 12:07 PM
BNuge is Offline
Link | 57 Words

BNuge
Level: 123


POSTS: 4690/5713
POST EXP: 365339
LVL EXP: 20901628
CP: 10519.5
VIZ: 1113202

Likes: 0  Dislikes: 0
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.
Vizzed Elite
Third Place in Feb 2011 VCS Achieved Ravering Syndrome + on Jan 6, 2012


Affected by 'Laziness Syndrome'

Registered: 04-30-10
Location: Northeast US
Last Post: 548 days
Last Active: 98 days

02-09-12 07:20 PM
Lazlo Falconi is Offline
Link | 30 Words

Lazlo Falconi
Level: 86


POSTS: 718/2736
POST EXP: 198674
LVL EXP: 5945211
CP: 2990.2
VIZ: 168650

Likes: 0  Dislikes: 0
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.
Vizzed Elite
<font color=


Affected by 'Laziness Syndrome'

Registered: 01-07-12
Location: Cartoon Hell
Last Post: 1 day
Last Active: 1 day

02-09-12 08:47 PM
BNuge is Offline
Link | 87 Words

BNuge
Level: 123


POSTS: 4695/5713
POST EXP: 365339
LVL EXP: 20901628
CP: 10519.5
VIZ: 1113202

Likes: 0  Dislikes: 0
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.
Vizzed Elite
Third Place in Feb 2011 VCS Achieved Ravering Syndrome + on Jan 6, 2012


Affected by 'Laziness Syndrome'

Registered: 04-30-10
Location: Northeast US
Last Post: 548 days
Last Active: 98 days

02-09-12 08:49 PM
Lazlo Falconi is Offline
Link | 13 Words

Lazlo Falconi
Level: 86


POSTS: 720/2736
POST EXP: 198674
LVL EXP: 5945211
CP: 2990.2
VIZ: 168650

Likes: 0  Dislikes: 0
Change them to CSS. w3schools has a bunch of good tutorials on CSS.
Vizzed Elite
<font color=


Affected by 'Laziness Syndrome'

Registered: 01-07-12
Location: Cartoon Hell
Last Post: 1 day
Last Active: 1 day

04-15-12 04:08 AM
catfight09 is Offline
Link | 19 Words

catfight09
Level: 84


POSTS: 1217/2328
POST EXP: 74403
LVL EXP: 5491332
CP: 380.3
VIZ: 43761

Likes: 0  Dislikes: 0
Thanks man. I'll be sure to check this site out as I've got just about no layout experience whatsoever.
Trusted Member
Final Fantasy XIII player


Affected by 'Laziness Syndrome'

Registered: 03-14-10
Last Post: 477 days
Last Active: 283 days

Links



  
  
  
  

Page Comments


This page has no comments