|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
|||
|
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>
There may be other incorrect structure in there, but 1 step at a time. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 & * 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. |
|
|||
|
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 |
|
|||
|
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 & 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. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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>
|
|
|||
|
Thanks to all that helped me, my code is now validated!!!
__________________
Shimshon 9 |
|
|||
|
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 |
|
|||
|
You have a strange character before the [/b]</span> just delete it from the HTML and that should fix it.
|
|
||||
|
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. |
|
|||
|
Quote:
__________________
Shimshon 9 |
|
|||
|
In your HTML editor delete the chatacter before [/b]</span>
|
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
<embed> is not part of the HTML specification, you need to use the <object> tag instead.
|
|
|||
|
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 |
|
||||
|
Take a look at this page Shimshon, it should help. There are a few different methods used to achieve the end result.
|
|
|||
|
Thanks Paulhiles
I got valiaded!!
__________________
Shimshon 9 |
|
|||
|
shimshon you've also got a JS error:
Code:
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
Code:
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
|
|
|||
|
One more question,
why do I have a red border around my W3C icon?
__________________
Shimshon 9 |
|
|||
|
Add a style to the image:
style="border-style: none" |
|
|||
|
Well, what would I do without you guys!!!
Thank you, Shimshon
__________________
Shimshon 9 |
|
|||
|
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 |
|
|||
|
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.
|
|
|||
|
Thanks,
found the file and changed it!! your great!
__________________
Shimshon 9 |
|
|||
|
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 |
|
|||
|
<form id="FormName" action="mycode.php" method="post">
Where 'mycode.php' is the file to send the form data to for processing. |
|
|||
|
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 |
|
|||
|
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> |
|
|||
|
Thanks its working!!
__________________
Shimshon 9 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |