/    Sign up×
Community /Pin to ProfileBookmark

Ive just tryed to validate my web site and on the index.html i get quite a bit. I used CSS to design the layout. These are the things below. Can anyone please help. P.S i never wrote the CSS for the menu i got it off a friend and i think alot of the bad validation is to do with that.

Line: 0
Parse error – Unrecognized : <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”> <html> <head> <title>Sphere Web Design – Home</title> <style type=”text/css” media=”screen”><!– #footer { clear: both; height:55px; width:627px; margin-top:480px; margin-left:85px; background-color: white; }

Line: 0 Context : A.menulink
Invalid number : displayhorizontal is not a display value : horizontal

Line: 0 Context : A.menulink:hover
Invalid number : background-colorlightblue is not a color value : lightblue

Line: 0 Context : A.menulink:hover
Parse Error – –></style> <STYLE> BODY {SCROLLBAR-FACE-COLOR: white; SCROLLBAR-HIGHLIGHT-COLOR: gray; SCROLLBAR-SHADOW-COLOR: gray; SCROLLBAR-3DLIGHT-COLOR: gray; SCROLLBAR-ARROW-COLOR: lightskyblue; SCROLLBAR-TRACK-COLOR: white; SCROLLBAR-DARKSHADOW-COLOR: black; SCROLLBAR-BASE-COLOR: aqua}

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : </STYLE> <script> var ns4class=” </script> </head> <body bgcolor=”#ffffff” link=”lightskyblue” vlink=”gray”> <div id=”banner”></div> <div id=”nav”> <center> <a href=”index.html” class=”menulink” class=&{ns4class}

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : };

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : ;>Home</a> <a href=”about.html” class=”menulink” class=&{ns4class}

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : };

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : ;>About</a> <a href=”web.html” class=”menulink” class=&{ns4class}

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : };

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : ;>Web Design</a> <a href=”flash.html” class=”menulink” class=&{ns4class}

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : };

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : ;>Flash Design</a> <a href=”prices.html” class=”menulink” class=&{ns4class}

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : };

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : ;>Prices</a> <a href=”portofolio.html” class=”menulink” class=&{ns4class}

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : };

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : ;>Portofolio</a> <a href=”contact.html” class=”menulink” class=&{ns4class}

Line: 0 Context : A.menulink:hover
Parse error – Unrecognized : };

Warnings
URI : file://localhost/C:Documents and SettingsOwnerDesktoptermdocsindex.html
Line : 0 font-family: You are encouraged to offer a generic family as a last alternative

Cheers
Chris Sharkey

to post a comment
Full-stack Developer

5 Comments(s)

Copy linkTweet thisAlerts:
@Paul_JrJan 12.2004 — Linkage or codage would be a big help (I.e., a link or some code).
Copy linkTweet thisAlerts:
@spufiJan 12.2004 — Not seeing your code I can only guess on a couple things. One, you might need a full Doctype. Before you could get away with a partial one, but that might not be true anymore. You should use a full one anyway because some browsers go into quirks mode even with a partial Doctype. Two, script tags need to go something like this... <script type="text/javascript">. The coloring of your scrollbar is IE only code and not W3C valid. Three, when using font-family you need to use at least one that's a default font like sans-serif.
Copy linkTweet thisAlerts:
@johndoe190authorJan 12.2004 — Cheers i have corrected some of these things. About my code i will have it up in a couple of days. What full doc type should i use, i know thats the first thing you should do to get it validated.


Cheers again for your help

Chris Sharkey
Copy linkTweet thisAlerts:
@FangJan 12.2004 — [URL=http://www.w3.org/QA/2002/04/valid-dtd-list.html]valid DTD's[/URL]
Copy linkTweet thisAlerts:
@johndoe190authorJan 12.2004 — Cheers fang for that this has also helped me.


Thanks again

Chris Sharkey
×

Success!

Help @johndoe190 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...