iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2004, 11:46 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default Validating my website

Hi,

I do not get my site validated!
How do I get the right encoding and the right doctype?

Can anybody help?

Thank you
shimshon
http://www.shimshon9.com
__________________
Shimshon 9
Reply With Quote
  #2 (permalink)  
Old 09-10-2004, 12:48 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

The first thing you need to do is clean up the HTML, on the home page I counted 2 <head> tags, 2 <body> tags, and 2 <html> tags you are only allowed one of each.

These tags should be structured like:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
    <meta name="description" content="">
    <title>Untitled Page</title>
  </head>
  <body>
    

Content</p>
  </body>
</html>
I guessed at the DOCTYPE based on some of your other pages, but at the moment you can choose the type you want and fix the code to that standard. Some of your pages are almost XHTML1.0 while others are nearer HTML4.

There may be other incorrect structure in there, but 1 step at a time.
Reply With Quote
  #3 (permalink)  
Old 09-10-2004, 01:08 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default very strange

Hi,

thank you, you found out something very strange, when I look in my editor the double tags are not appearing, but when I look in the source, this is apearing:
<html>

<head>
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="shimshon_9@hotmail.com">
<meta name="generator" content="AceHTML 5 Freeware">
</head>
<body>

I updated the file and it is still appearing - what is going on?
any idea?
__________________
Shimshon 9
Reply With Quote
  #4 (permalink)  
Old 09-10-2004, 01:59 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

I figured the double tag problem out.
I used the codes you gave me but it doesn't really works!
the validation result is following:
This page is not Valid XHTML 1.0 Transitional!

any ideas?
__________________
Shimshon 9
Reply With Quote
  #5 (permalink)  
Old 09-10-2004, 02:17 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Quote:
Originally Posted by shimshon
I figured the double tag problem out.
I used the codes you gave me but it doesn't really works!
the validation result is following:
This page is not Valid XHTML 1.0 Transitional!

any ideas?
You need to fix the errors until your page validates. I did notice there were around 200 errors or so.. and many of these are caused by links to external newsfeeds, etc and may be problematic to modify.
You could always take one step back and try the HTML 4.01 specification, but strictly speaking, I should encourage you to persevere with your XHTML Transitional.
Reply With Quote
  #6 (permalink)  
Old 09-10-2004, 02:51 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

It's your choice as to if you go HTML or XHTML but if you are going XHTML, and I'm only looking at the home page here's some pointers:

* For meta data make sure they are all terminated e.g.
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />

* Where you have & in a URL change it to &amp;

* Change all your tags to lower-case e.g. </SCRIPT> goes to </script>

* You can't use an id for multiple elements therefore create a unique id for each or use a class

* Change
to


You just need to keep validating and fixing the listed errors until there are none left.

Like paulhiles said you may have problems with anything you pull from other sites.
Reply With Quote
  #7 (permalink)  
Old 09-11-2004, 07:17 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

thanks for all the good advises.
Do you know any place where I can check mistakes on my site? and then what to do about them?
thanks
__________________
Shimshon 9
Reply With Quote
  #8 (permalink)  
Old 09-11-2004, 07:44 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

When you check you page via http://validator.w3.org you will get comments under the error with some advice on fixing the error.

Fix the obvious ones first e.g. replacing & in URLs with &amp; this will let you see where the real errors are.

For the more obscure errors you can always post a request for help.

You can fix several my making sure all your attributes have "" around the values e.g. border=0 should be border="0".

The non-SGML error in line 136 is fixed by deleting the ' and retyping it, this error is usually caused by copying and pasting from MS Word.
Reply With Quote
  #9 (permalink)  
Old 09-12-2004, 10:05 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default need more help

Hello again,
I fixed most of the errors I had but the following one is giving me a hard time! What should I do?

Thanks again for all the support!

Line 295, column 103: there is no attribute "allowTransparency"

...0" frameborder="1" allowTransparency="true"></iframe>

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
__________________
Shimshon 9
Reply With Quote
  #10 (permalink)  
Old 09-12-2004, 11:19 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Hi,
I have only 3 problems left but I have no clue how to solve them!!
Any suggestions?


Line 170, column 51: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

...index.php" method="post" name="form1"><input type="radio" name="radios" value

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "

" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


Line 476, column 74: an attribute specification must start with a name or name token

...ript:window.external.AddFavorite(url,who);"");

Check for stray quotes or incomplete attribute definitions.


Line 476, column 74: document type does not allow element "a" here

...ript:window.external.AddFavorite(url,who);"");

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Thank you
__________________
Shimshon 9
Reply With Quote
  #11 (permalink)  
Old 09-12-2004, 11:50 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

Line 170, move the </h3> tag that's currently after the </form> (line 173) to before the <form> tag.

Line 467, Replace everything between and with:
Code:
<script type="text/javascript" language="JavaScript"><!--
var txt = "Add Shimshon 9 to your Favorites";
var url = "http://www.shimshon9.com";
var who = "Shimshon 9 - News and views from Israel";
var ver = navigator.appName;
var num = parseInt(navigator.appVersion);
if ((ver == "Microsoft Internet Explorer") && (num >= 4)) {
document.write(""+ txt + "");
}else{
txt += "  (Ctrl+D)";
document.write(txt);
}
//-->
</script>
Reply With Quote
  #12 (permalink)  
Old 09-12-2004, 01:37 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default Thanks

Thanks to all that helped me, my code is now validated!!!
__________________
Shimshon 9
Reply With Quote
  #13 (permalink)  
Old 09-24-2004, 03:14 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default trying to valiate my page

Hi everybody,
again I am trying to validate my page again and I get only one error:

Line 120, column 0: non SGML character number 0

[/b]</span>

Anybody knows what I have to do?

thanks
shimshon
__________________
Shimshon 9
Reply With Quote
  #14 (permalink)  
Old 09-24-2004, 03:41 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

You have a strange character before the [/b]</span> just delete it from the HTML and that should fix it.
Reply With Quote
  #15 (permalink)  
Old 09-24-2004, 03:41 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default Non-standard character causing error

The warning gives you all the necessary info
There is a non-standard character in line 120. Might have been added during a cut n' paste operation from another application such as a Word document.
Reply With Quote
  #16 (permalink)  
Old 09-24-2004, 03:54 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Quote:
There is a non-standard character in line 120
what should I do then?
__________________
Shimshon 9
Reply With Quote
  #17 (permalink)  
Old 09-24-2004, 05:40 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

In your HTML editor delete the chatacter before [/b]</span>
Reply With Quote
  #18 (permalink)  
Old 09-24-2004, 06:21 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

I did delete, wrote everything new etc. but I still don't get valified?! I really don't know what the problem is this problem sudddenly appeared without me doing anything...
__________________
Shimshon 9
Reply With Quote
  #19 (permalink)  
Old 09-24-2004, 06:29 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

Hate to say it but you must have changed something.

If it's not in the HTML then it's being generated by a script somewhere, you are going to have to retrace your steps back to when it was last valid checking every file you touched.

Not much more I can suggest.
Reply With Quote
  #20 (permalink)  
Old 09-24-2004, 06:43 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

We changed to winter time here in Israel and I changed my date script according to it. This was the problem even I didn't use any copy and paste.
My script is now valuated, thanks to you guys!!!
special thanks to speed.

shimshon
__________________
Shimshon 9
Reply With Quote
  #21 (permalink)  
Old 10-11-2004, 01:22 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Hi again,

I am trying to validate http://www.shimshon9.com/Hatikva.html
and I am getting the following warning:

Line 118, column 11: there is no attribute "src"

This is the html:

<embed src="http://www.shimshon9.com/music/hatikva3.mid" autostart="true" volume

anybody that can help?
__________________
Shimshon 9
Reply With Quote
  #22 (permalink)  
Old 10-11-2004, 01:27 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

<embed> is not part of the HTML specification, you need to use the <object> tag instead.
Reply With Quote
  #23 (permalink)  
Old 10-11-2004, 01:35 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

I tried to use <object>, but it screwd up my hole design?!!
http://www.shimshon9.com/Hatikva.html

I used it like this:

<object src="http://www.shimshon9.com/music/hatikva3.mid" autostart="true" volume="120" width="144" height="60" controls="console"/>

and I still get error messages?

Why?
__________________
Shimshon 9
Reply With Quote
  #24 (permalink)  
Old 10-11-2004, 01:53 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default Embedding media files in XHTML

Take a look at this page Shimshon, it should help. There are a few different methods used to achieve the end result.
Reply With Quote
  #25 (permalink)  
Old 10-11-2004, 02:01 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Thanks Paulhiles

I got valiaded!!
__________________
Shimshon 9
Reply With Quote
  #26 (permalink)  
Old 10-11-2004, 02:03 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

shimshon you've also got a JS error:
Code:
if (init==true) with (navigator) {if ((appName=="Netscape")&amp;&amp;(parseInt(appVersion)==4)) {
Should be:
Code:
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
Reply With Quote
  #27 (permalink)  
Old 10-11-2004, 02:04 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

One more question,

why do I have a red border around my W3C icon?
__________________
Shimshon 9
Reply With Quote
  #28 (permalink)  
Old 10-11-2004, 02:18 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

Add a style to the image:

style="border-style: none"
Reply With Quote
  #29 (permalink)  
Old 10-11-2004, 02:25 PM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Well, what would I do without you guys!!!

Thank you,
Shimshon
__________________
Shimshon 9
Reply With Quote
  #30 (permalink)  
Old 10-15-2004, 08:28 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Here I am again trying to validate my site.
Now I have following problem, I am using cutenews to display latest articles.
When I am validating my homepage everything is fine, but when I am trying to validate after I clicked on 'Full Stroy' (in the white area) I get one error.

Its like follows:
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

So I know how to fix it, but I can't find the piece of html in any files. It must be somewhere... but since it is php it doesn't appear on my index site.

I already looked at all the files in my cutenews folder but I am unable to locate it.

This is the piece I am looking for:

<script type="text/javascript" src="http://www.shimshon9.com/cutenews/remember.js"></script><script>CNreadCookie();</script>

it's on line 426

Anybody knows what to do?
Thanks Shimshon
__________________
Shimshon 9
Reply With Quote
  #31 (permalink)  
Old 10-15-2004, 09:44 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

Chances are it is generated by the PHP so you won't find it as you typed it, so try searching for CNreadCookie and see if you can find it that way.
Reply With Quote
  #32 (permalink)  
Old 10-15-2004, 10:41 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Thanks,

found the file and changed it!!

your great!
__________________
Shimshon 9
Reply With Quote
  #33 (permalink)  
Old 10-18-2004, 09:01 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Yes, again a problem,

I am validating http://shimshon9.com/newsletter/easyletter.php
but I get this message:

Line 202, column 20: required attribute "action" not specified

<form method="post">

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

What do I need to change?
__________________
Shimshon 9
Reply With Quote
  #34 (permalink)  
Old 10-18-2004, 09:39 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

<form id="FormName" action="mycode.php" method="post">

Where 'mycode.php' is the file to send the form data to for processing.
Reply With Quote
  #35 (permalink)  
Old 10-18-2004, 09:48 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Thanks,
but now I get this message:

Line 202, column 58: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

<form id="FormName" action="easyletter.php" method="post">

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "

" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
__________________
Shimshon 9
Reply With Quote
  #36 (permalink)  
Old 10-18-2004, 10:52 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

Code:

Subscribe/Unsubscribe to the Newsletter:</p>
<form id="FormName" action="easyletter.php" method="post">
<div>Your email:*<input type="text" name="email" class="inputsmall" value="" size="20" />*
<input type="radio" name="action" value="sign" checked="checked" />subscribe
<input type="radio" name="action" value="delete" />unsubscribe*
<input type="submit" value=" Send! " class="button" />
</div>
</form>
You need to remove the </p> after </form> as it's been moved to after "Subscribe/Unsubscribe to the Newsletter:"
Reply With Quote
  #37 (permalink)  
Old 10-18-2004, 11:48 AM
WebProWorld Member
 
Join Date: Jul 2004
Location: Jerusalem/Israel
Posts: 50
shimshon RepRank 0
Default

Thanks its working!!
__________________
Shimshon 9
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:00 AM.



Search Engine Optimization by vBSEO 3.3.0