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,959,795,708
12-09-16 01:15 PM  
On Page:
In Directory: 2 users & 20 guests
Page Staff: Furret, geeogree,
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
Happy 12 Year Anniversary & 2016 Vizzed Awards
Announcements
Vizzed Competitions = Earn Viz and Steam Games
Announcements
PlayStation Netplay Stream = Tuesday from 4 - 8 (CST)
Announcements
Sega CD Music Stream ON Monday from 5-9 PM (CST) = $300 Steam Raffles!
Announcements
Black Friday = 2X Viz for Donations + 25% Off Vizzed Market

Thread Information

Views
678
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: 21219455
CP: 10600.0
VIZ: 1121452

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: 620 days
Last Active: 170 days

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

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

Lazlo Falconi
Level: 86


POSTS: 717/2737
POST EXP: 198693
LVL EXP: 6070943
CP: 3007.1
VIZ: 170196

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: 26 days
Last Active: 15 days

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

Nksor
the_casualty
Level: 124


POSTS: 5684/5852
POST EXP: 227861
LVL EXP: 21294104
CP: 1086.9
VIZ: 123140

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: 22 days
Last Active: 20 days

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

BNuge
Level: 123


POSTS: 4690/5713
POST EXP: 365339
LVL EXP: 21219455
CP: 10600.0
VIZ: 1121452

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: 620 days
Last Active: 170 days

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

Lazlo Falconi
Level: 86


POSTS: 718/2737
POST EXP: 198693
LVL EXP: 6070943
CP: 3007.1
VIZ: 170196

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: 26 days
Last Active: 15 days

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

BNuge
Level: 123


POSTS: 4695/5713
POST EXP: 365339
LVL EXP: 21219455
CP: 10600.0
VIZ: 1121452

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: 620 days
Last Active: 170 days

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

Lazlo Falconi
Level: 86


POSTS: 720/2737
POST EXP: 198693
LVL EXP: 6070943
CP: 3007.1
VIZ: 170196

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: 26 days
Last Active: 15 days

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

catfight09
Level: 84


POSTS: 1217/2328
POST EXP: 74403
LVL EXP: 5573199
CP: 382.9
VIZ: 43773

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: 549 days
Last Active: 355 days

Page Comments


This page has no comments