Solved

doctype error

Posted on 2007-03-24
3
557 Views
Last Modified: 2013-11-19
this is my doctype:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

but in my javascript error console, im getting this message that i dont know how to fix as i get the doctype from the W3C website

Error: missing ; before statement
Source File: http://www.searobin.co.uk/
Line: 8, Column: 10
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
0
Comment
Question by:ellandrd
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Manish
ID: 18784878
>><?xml version="1.0" encoding="UTF-8"?>
Is it HTML or xml?
0
 
LVL 11

Expert Comment

by:Manish
ID: 18784883
After removing will it works?
0
 
LVL 28

Accepted Solution

by:
TName earned 500 total points
ID: 18784971
Try to remove the empty js link (at least as long as it doesn't point to a file...)

<script src="" type="text/javascript"></script>
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JavaScript Loan Calculator Error 3 34
Link not working 6 42
Html using "Or" in condition 3 26
HTML or/and CSS codes to construct numbered paragraphs. 5 20
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question