hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : How to correct this?
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

How to correct this?

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-06-2010, 04:08 PM
WebHostingGeek2 WebHostingGeek2 is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 120
Smile

How to correct this?


hi,
can anyone tell that what are the errors in this code?
did i made a mistake in this?

PHP Code:
<!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" /><title>Example</title><link href="index_files/style.css" rel="stylesheet" type="text/css" /><link type="image/x-icon" href="http://www.mysite.com/favicon.ico" rel="shortcut icon" />
<
meta name="description" content="example, a, b, c">
<
meta name="keywords" content="example, a, b, c">
<
meta name="generator" content="Adobe dream weaver, WUSIWUG Komposer, Notepad++">
<
meta name="author" content="Name">
<
meta name="copyright" content="2010">
<
meta name="Distribution" content="Global">
<
meta name="Robots" content="INDEX,FOLLOW">
<
meta name="Revisit-after" content="1 Day"></head>
<
body

Reply With Quote


Sponsored Links
  #2  
Old 03-06-2010, 06:34 PM
evheniys evheniys is offline
Newbie
 
Join Date: Feb 2010
Posts: 16
This is simple HTML code, not PHP.
for PHP it must be:
====
<?PHP
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"'."\n";
echo '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
echo '<head>'."\n";
blah-blah-blah
?>
===
OR
<?PHP
?>
<!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" /><title>Example</title><link href="index_files/style.css" rel="stylesheet" type="text/css" /><link type="image/x-icon" href="http://www.mysite.com/favicon.ico" rel="shortcut icon" />
<meta name="description" content="example, a, b, c">
<meta name="keywords" content="example, a, b, c">
<meta name="generator" content="Adobe dream weaver, WUSIWUG Komposer, Notepad++">
<meta name="author" content="Name">
<meta name="copyright" content="2010">
<meta name="Distribution" content="Global">
<meta name="Robots" content="INDEX,FOLLOW">
<meta name="Revisit-after" content="1 Day"></head>
<body>

Reply With Quote
  #3  
Old 03-07-2010, 03:16 AM
WebHostingGeek2 WebHostingGeek2 is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 120
but my code is HTML.
so, should i add PHP code?

Reply With Quote
Sponsored Links
  #4  
Old 03-07-2010, 04:18 AM
evheniys evheniys is offline
Newbie
 
Join Date: Feb 2010
Posts: 16
Sorry, but my local time was 0.30 AM and I was bit sleepy I saw the text "PHP code", and ....

Yours META tags is not closed. This code must look like that:

PHP Code:
<!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" /><title>Example</title><link href="index_files/style.css" rel="stylesheet" type="text/css" /> 
<
link type="image/x-icon" href="http://www.mysite.com/favicon.ico" rel="shortcut icon" />
<
meta name="description" content="example, a, b, c" />
<
meta name="keywords" content="example, a, b, c" />
<
meta name="generator" content="Adobe dream weaver, WUSIWUG Komposer, Notepad++" />
<
meta name="author" content="Name" />
<
meta name="copyright" content="2010" />
<
meta name="Distribution" content="Global" />
<
meta name="Robots" content="INDEX,FOLLOW" />
<
meta name="Revisit-after" content="1 Day" />
</
head>
<
body>  
</
body>
</
html


Last edited by evheniys; 03-07-2010 at 04:26 AM.
Reply With Quote
  #5  
Old 03-07-2010, 08:57 AM
WebHostingGeek2 WebHostingGeek2 is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 120
Arrow

You don't need to say sorry, i am very thankful to you for the help. anyhow, i am still getting some errors.
can any one help me to solve them?


------------1

Line 1, Column 121: DTD did not contain element declaration for document type name

….0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

A DOCTYPE declares the version of the language used, as well as what the root (top) element of your document will be. For example, if the top element of your document is <html>, the DOCTYPE declaration will look like: "<!DOCTYPE html".

In most cases, it is safer not to type or edit the DOCTYPE declaration at all, and preferable to let a tool include it, or copy and paste it from a trusted list of DTDs.

------------2

Line 2, Column 43: document type does not allow element "html" here

<html xmlns="http://www.w3.org/1999/xhtml">

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).

------------3

Line 53, Column 94: there is no attribute "style"

…><h4>Special Offer</h4><marquee style="height: 157px;" direction="up" scrollam…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------4

Line 53, Column 121: there is no attribute "direction"

…quee style="height: 157px;" direction="up" scrollamount="1" scrolldelay="1" on…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------5

Line 53, Column 139: there is no attribute "scrollamount"

…: 157px;" direction="up" scrollamount="1" scrolldelay="1" onmouseover="this.st…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------6

Line 53, Column 155: there is no attribute "scrolldelay"

…ion="up" scrollamount="1" scrolldelay="1" onmouseover="this.stop();" onmouseou…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------7

Line 53, Column 171: there is no attribute "onmouseover"

…mount="1" scrolldelay="1" onmouseover="this.stop();" onmouseout="this.start();…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------8

Line 53, Column 197: there is no attribute "onmouseout"

…onmouseover="this.stop();" onmouseout="this.start();"><ul style="height: 146px…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------9

Line 53, Column 212: element "marquee" undefined

…mouseover="this.stop();" onmouseout="this.start();"><ul style="height: 146px;">

You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).


------------10

Line 167, Column 15: no document element

</body></html>

Reply With Quote
  #6  
Old 03-07-2010, 11:57 AM
larwilliams larwilliams is offline
Premium Member
 
Join Date: Jan 2008
Location: St. John's, NL
Posts: 2,027
Your main mistake is that you are mixing XHTML and HTML syntax. Also, I would not use XHTML syntax as it is not natively supported by any browser, and could send them into Quirks mode.

Also, the MARQUEE tag is not a HTML standard (it was created by Microsoft for IE and is supported in some other browsers).

The corrected code would be:

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Example</title>
<link href="index_files/style.css" rel="stylesheet" type="text/css">
<link type="image/x-icon" href="http://www.mysite.com/favicon.ico" rel="shortcut icon">
<meta name="description" content="example, a, b, c">
<meta name="keywords" content="example, a, b, c">
<meta name="generator" content="Adobe dream weaver, WUSIWUG Komposer, Notepad++">
<meta name="author" content="Name">
<meta name="copyright" content="2010">
<meta name="Distribution" content="Global">
<meta name="Robots" content="INDEX,FOLLOW">
<meta name="Revisit-after" content="1 Day">
</head>
<body>

__________________
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canadian web hosting since 2007
Servers based in the US and Canada (Uptime Report)

Reply With Quote
  #7  
Old 03-07-2010, 12:54 PM
WebHostingGeek2 WebHostingGeek2 is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 120
Arrow

ok, thanks.
but i have some errors in this line


HTML Code:
</form></div><div style="height: 179px;" class="so"><h4>Special Offer</h4><marquee style="height: 157px;" direction="up" scrollamount="1" scrolldelay="1" onmouseover="this.stop();" onmouseout="this.start();"><ul style="height: 146px;">
how do i correct them? i just can't understand it correctly!

------------1

Line 57, Column 94: there is no attribute "style"

…><h4>Special Offer</h4><marquee style="height: 157px;" direction="up" scrollam…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------2

Line 57, Column 121: there is no attribute "direction"

…quee style="height: 157px;" direction="up" scrollamount="1" scrolldelay="1" on…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------3

Line 57, Column 139: there is no attribute "scrollamount"

…: 157px;" direction="up" scrollamount="1" scrolldelay="1" onmouseover="this.st…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------4

Line 57, Column 155: there is no attribute "scrolldelay"

…ion="up" scrollamount="1" scrolldelay="1" onmouseover="this.stop();" onmouseou…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------5

Line 57, Column 171: there is no attribute "onmouseover"

…mount="1" scrolldelay="1" onmouseover="this.stop();" onmouseout="this.start();…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------6

Line 57, Column 197: there is no attribute "onmouseout"

…onmouseover="this.stop();" onmouseout="this.start();"><ul style="height: 146px…

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

------------7

Line 57, Column 212: element "marquee" undefined

…mouseover="this.stop();" onmouseout="this.start();"><ul style="height: 146px;">

You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).

Reply With Quote
  #8  
Old 03-07-2010, 01:36 PM
larwilliams larwilliams is offline
Premium Member
 
Join Date: Jan 2008
Location: St. John's, NL
Posts: 2,027
The errors are all related to the fact that MARQUEE isn't technically a part of the HTML standard

__________________
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canadian web hosting since 2007
Servers based in the US and Canada (Uptime Report)

Reply With Quote
  #9  
Old 03-07-2010, 01:55 PM
WebHostingGeek2 WebHostingGeek2 is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 120
Arrow

Quote:
Originally Posted by larwilliams View Post
The errors are all related to the fact that MARQUEE isn't technically a part of the HTML standard
so, what should i do to resolve this?

Reply With Quote
  #10  
Old 03-07-2010, 01:58 PM
larwilliams larwilliams is offline
Premium Member
 
Join Date: Jan 2008
Location: St. John's, NL
Posts: 2,027
Either not use the MARQUEE tag or ignore the errors (they won't cause any rendering issues, as non-supporting browsers will simply ignore the tag)

__________________
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canadian web hosting since 2007
Servers based in the US and Canada (Uptime Report)

Reply With Quote
  #11  
Old 03-07-2010, 02:03 PM
WebHostingGeek2 WebHostingGeek2 is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 120
Arrow

Quote:
Originally Posted by larwilliams View Post
Either not use the MARQUEE tag or ignore the errors (they won't cause any rendering issues, as non-supporting browsers will simply ignore the tag)
any seo effect because of this error?

Reply With Quote
  #12  
Old 03-07-2010, 05:47 PM
larwilliams larwilliams is offline
Premium Member
 
Join Date: Jan 2008
Location: St. John's, NL
Posts: 2,027
Quote:
Originally Posted by WebHostingGeek2 View Post
any seo effect because of this error?
No. Such an error will have no effect on SEO.

__________________
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canadian web hosting since 2007
Servers based in the US and Canada (Uptime Report)

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
am i understand correct about ODBC and database? please correct requested Hosting Security and Technology 7 08-27-2003 06:42 AM
Is This Correct? newbizhelp Running a Web Hosting Business 27 03-26-2003 11:01 PM
Which is the correct name? andree Running a Web Hosting Business 6 01-26-2003 04:08 PM
Correct Way for??? FXWeb Web Hosting 3 11-26-2002 03:37 AM

Related posts from TheWhir.com
Title Type Date Posted
Rackspace Launches Fanatical Support for Developers Web Hosting News 2013-05-16 13:02:32
If AWS Rakes in $2.4B Per Year, What Does it Mean for its Competitors? Blog 2013-04-26 15:53:59
Windows Azure SSL Slip-up Brings SSL Checker Tools Business Blog 2013-02-26 12:25:08
Web Host HostDime Offers Attracta SEO Tools to Resellers Web Hosting News 2011-08-03 17:07:08
LinkedIn Access Cookie Opens Users to Security Breaches, says Security Analyst Web Hosting News 2011-05-24 14:19:01


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?