Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Checking for Coding Errors
Old 07-10-2011, 01:36 PM Checking for Coding Errors
Skilled Talker

Posts: 51
Name: Mark Strobel
Trades: 0
I am trying to check my site, http://www.strongfamilies.us, for coding errors

using http://validator.w3.org. However, this site states the following:

--------
No Character Encoding Found! Falling back to windows-1252.

None of the standards sources gave any information on the character encoding

labeling for this document. Without encoding information it is impossible to

reliably validate the document. As a fallback solution, the "windows-1252"

encoding was used to read the content and attempt to perform the validation,

but this is likely to fail for all non-trivial documents.

Before defaulting to windows-1252 the validator also tried to read the content

with the following encoding(s), without success: UTF-8.

Read the FAQ entry on character encoding for more details and pointers on how

to fix this problem with your document.

No Character encoding declared at document level

No character encoding information was found within the document, either in an

HTML meta element or an XML declaration. It is often recommended to declare

the character encoding in the document itself, especially if there is a chance

that the document will be read from or saved to disk, CD, etc.

See this tutorial on character encoding for techniques and explanations.
---------------------

I read through the tutorial yet I cannot figure out how to add the necessary

coding needed for this site to check for errors. If someone could help me

with this, I would surely appreciate it. Thanks.
MarkStrobel3367 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-10-2011, 04:27 PM Re: Checking for Coding Errors
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add ContentType and CharSet meta elements.


Though it doesn't really matter that much.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-10-2011, 05:22 PM Re: Checking for Coding Errors
Skilled Talker

Posts: 51
Name: Mark Strobel
Trades: 0
Hi Chris,

I found the right character code to use that http://validator.w3.org accepts. However, it seems that this site is giving me a lot of false negative readings. It lists about 114 errors on one page. Many of the errors have to do with the use of < and >. When I remove either of these characters, the whole page goes high-wire. I'm really confused about this validation site!
MarkStrobel3367 is offline
Reply With Quote
View Public Profile
 
Old 07-10-2011, 07:12 PM Re: Checking for Coding Errors
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Using XHTML tag ends (/>) with a HTML 4.01 doctype is the cause of most of the warnings.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-10-2011, 08:19 PM Re: Checking for Coding Errors
Giselle's Avatar
"Happy Trails"

Posts: 10,231
Name: Giselle
Location: Washington State
Trades: 0
Hello Mark,

You must have fixed some of the errors, the validation is only showing 13 errors and 14 warnings.

Looked at your source code, LadynRed (Moderator) is very knowledgeable with CSS, below is the code for your .css file.

<link href="name.css" type="text/css" rel="stylesheet">

Hope this helps, perhaps LadynRed could give you more help.
Giselle is offline
Reply With Quote
View Public Profile
 
Old 07-11-2011, 01:54 AM Re: Checking for Coding Errors
Skilled Talker

Posts: 51
Name: Mark Strobel
Trades: 0
How should I correct this issue? Is this a doctype issue? Should I change my doctype? If so, which doctype do you recommend? Thanks.
MarkStrobel3367 is offline
Reply With Quote
View Public Profile
 
Old 07-11-2011, 05:31 AM Re: Checking for Coding Errors
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
As I posted before:

Add a ContentType meta and Character Set meta
http://www.w3.org/International/O-charset

and fix the tag ends to BE HTML (>) instead of XHTML (/>)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-11-2011, 01:21 PM Re: Checking for Coding Errors
Giselle's Avatar
"Happy Trails"

Posts: 10,231
Name: Giselle
Location: Washington State
Trades: 0
Quote:
Originally Posted by MarkStrobel3367 View Post
How should I correct this issue? Is this a doctype issue? Should I change my doctype? If so, which doctype do you recommend? Thanks.
You can correct this issue in Notepad, here is the I code use on the recommendation of LadynRed using a CSS file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">

Here is a link for all the DOCTYPE Declarations with explanations.
Giselle is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Checking for Coding Errors
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28743 seconds with 12 queries